Fixed notice in libraries/blobstreaming.lib.php when ['ServerDefault'] is set to 0

This commit is contained in:
Raj Kissu Rajandran
2008-12-16 16:53:32 +00:00
parent 30ba31ebb6
commit 4d775dd979

View File

@@ -30,10 +30,14 @@ function checkBLOBStreamingPlugins()
// retrieve current server configuration // retrieve current server configuration
$serverCfg = $PMA_Config->get('Servers'); $serverCfg = $PMA_Config->get('Servers');
$serverCfg = $serverCfg[$GLOBALS['server']];
if (isset($serverCfg[$GLOBALS['server']]))
$serverCfg = $serverCfg[$GLOBALS['server']];
else
$serverCfg = null;
// return if unable to retrieve current server configuration // return if unable to retrieve current server configuration
if (! $serverCfg) if (!isset($serverCfg))
return FALSE; return FALSE;
// if PHP extension in use is 'mysql', specify element 'PersistentConnections' // if PHP extension in use is 'mysql', specify element 'PersistentConnections'