mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Fix PHP 7.2 warning "PHP Warning: Invalid argument supplied for foreach()"
This commit is contained in:
parent
7b69f8cfa5
commit
68a316fb3f
@ -310,7 +310,7 @@ class Nextmatch extends Etemplate\Widget
|
||||
$filters = $valid_filters[$form_name];
|
||||
}
|
||||
// Avoid empty arrays, they cause problems with db filtering
|
||||
foreach($filters['col_filter'] as $col => &$val)
|
||||
foreach((array)$filters['col_filter'] as $col => &$val)
|
||||
{
|
||||
if(is_array($val) && count($val) == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user