Permalink
Browse files

MDL-34441 prevent mysqli::close() notice after failed mysql driver co…

…nnect
  • Loading branch information...
skodak committed Jul 22, 2012
1 parent c8e5d9c commit 9134f9aa9cc28f43b64d999146f35eb40a91bae7
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/dml/mysqli_native_moodle_database.php
@@ -380,6 +380,7 @@ public function connect($dbhost, $dbuser, $dbpass, $dbname, $prefix, array $dbop
$errorno = @$this->mysqli->connect_errno;
if ($errorno !== 0) {
+ $this->mysqli = null;
throw new dml_connection_exception($dberr);
}

0 comments on commit 9134f9a

Please sign in to comment.