fixed bug in tableExists()

This commit is contained in:
Tim Starling 2004-05-23 03:38:25 +00:00
parent 6a6489ac07
commit 53a43db6a8

View file

@ -334,6 +334,7 @@ class Database {
function tableExists( $table )
{
$old = $this->mIgnoreErrors;
$this->mIgnoreErrors = true;
$res = $this->query( "SELECT 1 FROM $table LIMIT 1" );
$this->mIgnoreErrors = $old;
if( $res ) {