mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +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';
|
$status = 'status';
|
||||||
// allow to set a diffent name for status (field-name), eg. because status is already used for something else
|
// 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'];
|
$status = $cell['size'];
|
||||||
foreach($value as &$row)
|
foreach($value as &$row)
|
||||||
|
Loading…
Reference in New Issue
Block a user