forked from extern/egroupware
Fix PHP 7.2 warning "PHP Warning: Invalid argument supplied for foreach()"
This commit is contained in:
parent
ea1b66c069
commit
4bf653515a
@ -378,7 +378,7 @@ class Storage extends Storage\Base
|
||||
{
|
||||
parent::get_rows($query,$rows,$readonlys,$join,$need_full_no_count,$only_keys,$extra_cols);
|
||||
|
||||
$selectcols = $query['selectcols'] ? explode(',',$query['selectcols']) : array();
|
||||
$selectcols = $query['selectcols'] ? (is_string($query['selectcols']) ? explode(',',$query['selectcols']) :$query['selectcols']): array();
|
||||
|
||||
if ($rows && $this->customfields && (!$selectcols || in_array('customfields',$selectcols)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user