Skip to content

Commit f5bb4fb

Browse files
author
ncomputers.org
committed
corrected meaning
1 parent 4858503 commit f5bb4fb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ public function configure_database() {
226226

227227
//* check sql-mode
228228
$check_sql_mode = $this->db->queryOneRecord("SELECT @@sql_mode");
229-
230-
if(!strpos($check_sql_mode['@@sql_mode'],'NO_ENGINE_SUBSTITUTION')) {
229+
if($check_sql_mode['@@sql_mode']!='' && strpos($check_sql_mode['@@sql_mode'],'NO_ENGINE_SUBSTITUTION')===false) {
231230
echo "Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION. Add\n\n";
232231
echo " sql-mode=\"NO_ENGINE_SUBSTITUTION\"\n\n";
233232
echo"to the mysqld-section in your mysql-config and restart mysqld afterwards\n";

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(!strpos($check_sql_mode['@@sql_mode'],'NO_ENGINE_SUBSTITUTION')) {
128+
if($check_sql_mode['@@sql_mode']!='' && strpos($check_sql_mode['@@sql_mode'],'NO_ENGINE_SUBSTITUTION')===false) {
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)