From 4230bfc59522e3f1196c59e2adfdec0e2ab8aa57 Mon Sep 17 00:00:00 2001 From: Raj Kissu Rajandran Date: Wed, 10 Dec 2008 16:06:31 +0000 Subject: [PATCH] Fixed issue in libraries/blobstreaming.lib.php with regards to ['extension'] and ['connect_type'] throwing notices when not been set in config.inc.php --- libraries/blobstreaming.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/blobstreaming.lib.php b/libraries/blobstreaming.lib.php index d5b68aed8..7d2bf46aa 100644 --- a/libraries/blobstreaming.lib.php +++ b/libraries/blobstreaming.lib.php @@ -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