Fix variable name in search method.

This commit is contained in:
kj 2020-12-03 11:05:34 -04:00
parent cbd59c217f
commit 0613ecb373

View File

@ -650,7 +650,7 @@ class ModelMySQL {
public static function search($search, $in = null) { public static function search($search, $in = null) {
if ($in == null) { if ($in == null) {
$className = get_called_class(); $className = get_called_class();
$objAtts = array_keys((new $className())->getVars()); $in = array_keys((new $className())->getVars());
} }
$db = static::db(); $db = static::db();