From 8a46d9a3c95df8ff2f61e73535cea3ae16cfd6c7 Mon Sep 17 00:00:00 2001 From: kj Date: Sat, 8 Aug 2020 02:24:11 -0400 Subject: [PATCH] Fix error with join and PHP 7.4. --- src/Libs/ModelMySQL.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Libs/ModelMySQL.php b/src/Libs/ModelMySQL.php index e2bf0a2..abb6036 100644 --- a/src/Libs/ModelMySQL.php +++ b/src/Libs/ModelMySQL.php @@ -657,9 +657,9 @@ class ModelMySQL { } if (static::$querySelect['where']=='') - static::$querySelect['where'] = join($where, ' OR '); + static::$querySelect['where'] = join(' OR ', $where); else - static::$querySelect['where'] = static::$querySelect['where'] .' AND ('.join($where, ' OR ').')'; + static::$querySelect['where'] = static::$querySelect['where'] .' AND ('.join(' OR ', $where).')'; return new static(); }