File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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" ;
Original file line number Diff line number Diff 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" ;
You can’t perform that action at this time.
0 commit comments