Fix error with join and PHP 7.4.
This commit is contained in:
parent
fe98d94692
commit
8a46d9a3c9
@ -657,9 +657,9 @@ class ModelMySQL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (static::$querySelect['where']=='')
|
if (static::$querySelect['where']=='')
|
||||||
static::$querySelect['where'] = join($where, ' OR ');
|
static::$querySelect['where'] = join(' OR ', $where);
|
||||||
else
|
else
|
||||||
static::$querySelect['where'] = static::$querySelect['where'] .' AND ('.join($where, ' OR ').')';
|
static::$querySelect['where'] = static::$querySelect['where'] .' AND ('.join(' OR ', $where).')';
|
||||||
|
|
||||||
return new static();
|
return new static();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user