Skip to content

Commit b8741df

Browse files
author
ncomputers.org
committed
added support for newer versions of mariadb-server/mysql-server
1 parent 36ff1c0 commit b8741df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/lib/update.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function updateDbAndIni() {
125125

126126
//* check sql-mode
127127
$check_sql_mode = $inst->db->queryOneRecord("SELECT @@sql_mode");
128-
if ($check_sql_mode['@@sql_mode'] != '' && $check_sql_mode['@@sql_mode'] != 'NO_ENGINE_SUBSTITUTION') {
128+
if(!strpos($check_sql_mode['@@sql_mode'],'NO_ENGINE_SUBSTITUTION')) {
129129
echo "Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION. Add\n\n";
130130
echo " sql-mode=\"NO_ENGINE_SUBSTITUTION\"\n\n";
131131
echo"to the mysqld-section in your mysql-config and restart mysqld afterwards\n";

0 commit comments

Comments
 (0)