From: Domas Mituzas Date: Mon, 21 Jun 2004 12:07:41 +0000 (+0000) Subject: fix isOpen (mOpened was not defined on connect) X-Git-Tag: 1.5.0alpha1~2798 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=56589ff4998679fef93346260a7d066dd9862d97;p=lhc%2Fweb%2Fwiklou.git fix isOpen (mOpened was not defined on connect) --- diff --git a/includes/DatabasePostgreSQL.php b/includes/DatabasePostgreSQL.php index 80c762ad3c..f9add198cc 100644 --- a/includes/DatabasePostgreSQL.php +++ b/includes/DatabasePostgreSQL.php @@ -122,6 +122,8 @@ class Database { wfDebug( "DB connection error\n" ); wfDebug( "Server: $server, Database: $dbName, User: $user, Password: " . substr( $password, 0, 3 ) . "...\n" ); wfDebug( $this->lastError()."\n" ); + } else { + $this->mOpened = true; } } return $this->mConn;