Avoid warning if filter is null

This commit is contained in:
nathangray 2018-08-08 09:27:38 -06:00
parent 3c5b7c8ba5
commit da45cf2776

View File

@ -432,7 +432,7 @@ class Storage extends Storage\Base
// if no CFs are defined OR used and became unavailable (deleted or permissions changed)
if (!$this->customfields && strpos($order_by, self::CF_PREFIX) === false &&
strpos(implode(',', array_keys($filter)), self::CF_PREFIX) === false)
strpos(implode(',', array_keys($filter ? $filter : [])), self::CF_PREFIX) === false)
{
return parent::search($criteria,$only_keys,$order_by,$extra_cols,$wildcard,$empty,$op,$start,$filter,$join,$need_full_no_count);
}