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:
@@ -37,11 +37,11 @@ function checkBLOBStreamingPlugins()
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
// if PHP extension in use is 'mysql', specify element 'PersistentConnections'
|
// 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'];
|
$serverCfg['PersistentConnections'] = $PMA_Config->settings['PersistentConnections'];
|
||||||
|
|
||||||
// if connection type is TCP, unload socket variable
|
// 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'] = "";
|
$serverCfg['socket'] = "";
|
||||||
|
|
||||||
// define BS Plugin variables
|
// define BS Plugin variables
|
||||||
|
Reference in New Issue
Block a user