MDL-19711 dml: Fix undefined $dberr

In mysqli_native_moodle_database::raw_connect()
This commit is contained in:
Srdjan 2020-05-19 16:21:48 +10:00
parent 46cfde3d95
commit 3612d0b8b9

View File

@ -567,6 +567,7 @@ class mysqli_native_moodle_database extends moodle_database {
}
$conn = null;
$dberr = null;
try {
$conn = $this->mysqli->real_connect($dbhost, $dbuser, $dbpass, $dbname, $dbport, $dbsocket);
} catch (\Exception $e) {