fix/avoid warning on NULL sel_options subarray in fix_sel_options

This commit is contained in:
Klaus Leithoff 2015-05-19 14:27:06 +00:00
parent bab4de6d16
commit 01fdd4d33a

View File

@ -258,6 +258,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'])))