Fix variable name in search method.
This commit is contained in:
parent
cbd59c217f
commit
0613ecb373
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user