Fixed issue in libraries/blobstreaming.lib.php with regards to ['extension'] and ['connect_type'] throwing notices when not been set in config.inc.php

This commit is contained in:
Raj Kissu Rajandran
2008-12-10 16:06:31 +00:00
parent b89b2ac4c6
commit 4230bfc595

View File

@@ -37,11 +37,11 @@ function checkBLOBStreamingPlugins()
return FALSE;
// if PHP extension in use is 'mysql', specify element 'PersistentConnections'
if ($serverCfg['extension'] == "mysql")
if (isset($serverCfg['extension']) && "mysql" == $serverCfg['extension'])
$serverCfg['PersistentConnections'] = $PMA_Config->settings['PersistentConnections'];
// if connection type is TCP, unload socket variable
if (strtolower($serverCfg['connect_type']) == "tcp")
if (isset($serverCfg['connect_type']) && "tcp" == strtolower($serverCfg['connect_type']))
$serverCfg['socket'] = "";
// define BS Plugin variables