mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
prevent foreach warning, when & is not an array
This commit is contained in:
parent
06fb05a891
commit
ed040955bb
@ -134,7 +134,7 @@ class historylog_widget
|
||||
|
||||
$status = 'status';
|
||||
// allow to set a diffent name for status (field-name), eg. because status is already used for something else
|
||||
if (!empty($cell['size']) && isset($tmpl->sel_options[$cell['size']]))
|
||||
if (!empty($cell['size']) && isset($tmpl->sel_options[$cell['size']]) && is_array($value))
|
||||
{
|
||||
$status = $cell['size'];
|
||||
foreach($value as &$row)
|
||||
|
Loading…
Reference in New Issue
Block a user