forked from extern/egroupware
Avoid warning if selectbox has no options
This commit is contained in:
parent
50c63d6a9e
commit
7d07d51265
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user