mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-34441 prevent mysqli::close() notice after failed mysql driver connect
This commit is contained in:
parent
90ad9a5329
commit
a197c413c5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user