fixed bug in tableExists()
This commit is contained in:
parent
6a6489ac07
commit
53a43db6a8
1 changed files with 1 additions and 0 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue