fix/avoid warning on NULL sel_options subarray in fix_sel_options

This commit is contained in:
Klaus Leithoff 2015-05-19 14:29:19 +00:00
parent ec180093b4
commit c217c4a60f

View File

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