We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ff1c0 commit b8741dfCopy full SHA for b8741df
install/lib/update.lib.php
@@ -125,7 +125,7 @@ function updateDbAndIni() {
125
126
//* check sql-mode
127
$check_sql_mode = $inst->db->queryOneRecord("SELECT @@sql_mode");
128
- if ($check_sql_mode['@@sql_mode'] != '' && $check_sql_mode['@@sql_mode'] != 'NO_ENGINE_SUBSTITUTION') {
+ if(!strpos($check_sql_mode['@@sql_mode'],'NO_ENGINE_SUBSTITUTION')) {
129
echo "Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION. Add\n\n";
130
echo " sql-mode=\"NO_ENGINE_SUBSTITUTION\"\n\n";
131
echo"to the mysqld-section in your mysql-config and restart mysqld afterwards\n";
0 commit comments