diff options
author | Christian Weber | 2007-09-20 14:21:13 +0000 |
---|---|---|
committer | Christian Weber | 2007-09-20 14:21:13 +0000 |
commit | 40388384005eba62a6e9e9fc222b6203ecfebcfb (patch) | |
tree | 87fd07177e38103126799c3cdd9fde02db293d9b /it_dbi.class | |
parent | d77fead38b86a5310da5c793605b42f1dc8e389b (diff) | |
download | itools-40388384005eba62a6e9e9fc222b6203ecfebcfb.tar.gz itools-40388384005eba62a6e9e9fc222b6203ecfebcfb.tar.bz2 itools-40388384005eba62a6e9e9fc222b6203ecfebcfb.zip |
Fix database comparison in constructor
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 2 |
1 files changed, 1 insertions, 1 deletions
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 |