diff --git a/lib/dml/mariadb_native_moodle_database.php b/lib/dml/mariadb_native_moodle_database.php index cbf5992200fdb..12dc9ebefff15 100644 --- a/lib/dml/mariadb_native_moodle_database.php +++ b/lib/dml/mariadb_native_moodle_database.php @@ -81,7 +81,7 @@ protected function get_dbtype() { public function get_server_info() { $version = $this->mysqli->server_info; $matches = null; - if (preg_match('/^5\.5\.5-(10\..+)-MariaDB$/i', $version, $matches)) { + if (preg_match('/^5\.5\.5-(10\..+)-MariaDB/i', $version, $matches)) { // Looks like MariaDB decided to use these weird version numbers for better BC with MySQL... $version = $matches[1]; }