forked from extern/egroupware
Avoid warning when input is not an array - caused by no cfs
This commit is contained in:
parent
3bce9fccc3
commit
9d179df719
@ -227,6 +227,7 @@ class etemplate_widget_customfields extends etemplate_widget_transformer
|
||||
}
|
||||
|
||||
$value_in = self::get_array($content, $form_name);
|
||||
if(is_array($value_in)) {
|
||||
foreach($value_in as $field => $value)
|
||||
{
|
||||
if ((string)$value === '' && $this->attrs['needed'])
|
||||
@ -241,3 +242,4 @@ class etemplate_widget_customfields extends etemplate_widget_transformer
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user