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

This commit is contained in:
Petr Škoda 2012-07-22 11:13:14 +02:00
parent 90ad9a5329
commit a197c413c5

View File

@ -384,6 +384,7 @@ class mysqli_native_moodle_database extends moodle_database {
$errorno = @$this->mysqli->connect_errno;
if ($errorno !== 0) {
$this->mysqli = null;
throw new dml_connection_exception($dberr);
}