From 4d775dd979a0fc9cf718824e30292fad2a6d59a8 Mon Sep 17 00:00:00 2001 From: Raj Kissu Rajandran Date: Tue, 16 Dec 2008 16:53:32 +0000 Subject: [PATCH] Fixed notice in libraries/blobstreaming.lib.php when ['ServerDefault'] is set to 0 --- libraries/blobstreaming.lib.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/blobstreaming.lib.php b/libraries/blobstreaming.lib.php index 7d2bf46aa..94f2170ae 100644 --- a/libraries/blobstreaming.lib.php +++ b/libraries/blobstreaming.lib.php @@ -30,10 +30,14 @@ function checkBLOBStreamingPlugins() // retrieve current server configuration $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 - if (! $serverCfg) + if (!isset($serverCfg)) return FALSE; // if PHP extension in use is 'mysql', specify element 'PersistentConnections'