Index: trunk/core/kernel/application.php =================================================================== diff -u -N -r7855 -r7991 --- trunk/core/kernel/application.php (.../application.php) (revision 7855) +++ trunk/core/kernel/application.php (.../application.php) (revision 7991) @@ -2455,17 +2455,7 @@ */ function TableFound($table_name) { - static $table_found = Array(); - - if (!preg_match('/^'.preg_quote(TABLE_PREFIX, '/').'(.*)/', $table_name)) { - $table_name = TABLE_PREFIX.$table_name; - } - - if (!isset($table_found[$table_name])) { - $table_found[$table_name] = $this->Conn->Query('SHOW TABLES LIKE "'.$table_name.'"'); - } - - return $table_found[$table_name]; + $this->Conn->TableFound($table_name); } }