Index: trunk/kernel/include/itemdb.php =================================================================== diff -u -r1442 -r1566 --- trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 1442) +++ trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 1566) @@ -626,7 +626,7 @@ function TableExists($table = null) { // checks if table specified in item exists in db - $db =& $this->adodbConnection; + $db =& GetADODBConnection(); $sql = "SHOW TABLES LIKE '%s'"; if($table == null) $table = $this->tablename; $rs = $db->Execute( sprintf($sql, $table) );