From 682452efc1fc1265874c73ffcdfcb75c8f05be28 Mon Sep 17 00:00:00 2001 From: kj Date: Tue, 17 Mar 2020 13:53:48 -0400 Subject: [PATCH] Fix error in search method. --- src/Libs/ModelMySQL.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Libs/ModelMySQL.php b/src/Libs/ModelMySQL.php index f5bd40d..512b1d5 100644 --- a/src/Libs/ModelMySQL.php +++ b/src/Libs/ModelMySQL.php @@ -562,8 +562,7 @@ class ModelMySQL { $where = []; foreach($in as $row){ - if(in_array($row, $objAtts)) - $where[] = "$row LIKE '%$search%'"; + $where[] = "$row LIKE '%$search%'"; } if (self::$querySelect['where']=='')