Skip to content

Commit 1d5cbdb

Browse files
author
ncomputers.org
committed
added support for newer versions of mariadb-server
1 parent 84006c5 commit 1d5cbdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function configure_database() {
227227
//* check sql-mode
228228
$check_sql_mode = $this->db->queryOneRecord("SELECT @@sql_mode");
229229

230-
if ($check_sql_mode['@@sql_mode'] != '' && $check_sql_mode['@@sql_mode'] != 'NO_ENGINE_SUBSTITUTION') {
230+
if(!strpos($check_sql_mode['@@sql_mode'],'NO_ENGINE_SUBSTITUTION')) {
231231
echo "Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION. Add\n\n";
232232
echo " sql-mode=\"NO_ENGINE_SUBSTITUTION\"\n\n";
233233
echo"to the mysqld-section in your mysql-config and restart mysqld afterwards\n";

0 commit comments

Comments
 (0)