From 0613ecb3733ff4c7132f00272ef14bbe863f26a4 Mon Sep 17 00:00:00 2001 From: kj Date: Thu, 3 Dec 2020 11:05:34 -0400 Subject: [PATCH] Fix variable name in search method. --- src/Libs/ModelMySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libs/ModelMySQL.php b/src/Libs/ModelMySQL.php index adcbdbc..da80f51 100644 --- a/src/Libs/ModelMySQL.php +++ b/src/Libs/ModelMySQL.php @@ -650,7 +650,7 @@ class ModelMySQL { public static function search($search, $in = null) { if ($in == null) { $className = get_called_class(); - $objAtts = array_keys((new $className())->getVars()); + $in = array_keys((new $className())->getVars()); } $db = static::db();