fixed bug in tableExists()
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 23 May 2004 03:38:25 +0000 (03:38 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 23 May 2004 03:38:25 +0000 (03:38 +0000)
includes/Database.php

index d846254..4994f74 100644 (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 ) {