diff --git a/etemplate/inc/class.etemplate_new.inc.php b/etemplate/inc/class.etemplate_new.inc.php index 7907f6d2e6..b3d05ac902 100644 --- a/etemplate/inc/class.etemplate_new.inc.php +++ b/etemplate/inc/class.etemplate_new.inc.php @@ -257,6 +257,7 @@ class etemplate_new extends etemplate_widget_template { foreach($sel_options as &$options) { + if (!is_array($options)||empty($options)) continue; foreach($options as $key => $value) { if (is_numeric($key) && (!is_array($value) || !isset($value['value'])))