prevent foreach warning, when & is not an array

This commit is contained in:
Klaus Leithoff 2010-04-27 10:37:50 +00:00
parent 06fb05a891
commit ed040955bb

View File

@ -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)