From 40388384005eba62a6e9e9fc222b6203ecfebcfb Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Thu, 20 Sep 2007 14:21:13 +0000 Subject: Fix database comparison in constructor --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_dbi.class b/it_dbi.class index d91e1f7..5ebf1bf 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -55,7 +55,7 @@ function it_dbi($config = array(), $query = null) $defaults = $GLOBALS['it_dbi']->_defaults ? eval("return array({$GLOBALS['it_dbi']->_defaults});") : array(); # If the global singleton defaults are for another db, server or server_update then do not use them. - if (($config['db'] != $defaults['db']) || ($config['server'] != $defaults['server']) || ($config['server_update'] != $defaults['server_update'])) + if (isset($config['db']) && ($config['db'] != $defaults['db']) || isset($config['server']) && ($config['server'] != $defaults['server']) || isset($config['server_update']) && ($config['server_update'] != $defaults['server_update'])) $defaults = array(); # Create current settings -- cgit v1.2.3