Avoid warning if selectbox has no options

This commit is contained in:
Nathan Gray 2013-02-27 17:57:23 +00:00
parent 50c63d6a9e
commit 7d07d51265

View File

@ -144,6 +144,8 @@ class etemplate_widget_menupopup extends etemplate_widget
// Make sure  s, etc. are properly encoded when sent, and not double-encoded
$options = (self::$request->sel_options[$form_name] ? $form_name : $this->id);
if(is_array(self::$request->sel_options[$options]))
{
foreach(self::$request->sel_options[$options] as &$label)
{
if(!is_array($label))
@ -156,6 +158,7 @@ class etemplate_widget_menupopup extends etemplate_widget
}
}
}
}
/**
* Get options from $sel_options array for a given selectbox name