mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
Make sure sel_options is an array
This commit is contained in:
parent
7d781a56a4
commit
36688173a4
@ -117,10 +117,10 @@ class etemplate_widget_menupopup extends etemplate_widget
|
|||||||
public function beforeSendToClient($cname)
|
public function beforeSendToClient($cname)
|
||||||
{
|
{
|
||||||
$form_name = self::form_name($cname, $this->id);
|
$form_name = self::form_name($cname, $this->id);
|
||||||
|
if (!is_array(self::$request->sel_options[$form_name])) self::$request->sel_options[$form_name] = array();
|
||||||
if ($this->attrs['type'])
|
if ($this->attrs['type'])
|
||||||
{
|
{
|
||||||
// += to keep further options set by app code
|
// += to keep further options set by app code
|
||||||
if (!is_array(self::$request->sel_options[$form_name])) self::$request->sel_options[$form_name] = array();
|
|
||||||
self::$request->sel_options[$form_name] += self::typeOptions($this->attrs['type'], $this->attrs['options'],
|
self::$request->sel_options[$form_name] += self::typeOptions($this->attrs['type'], $this->attrs['options'],
|
||||||
$no_lang, $this->attrs['readonly'], self::get_array(self::$request->content, $form_name));
|
$no_lang, $this->attrs['readonly'], self::get_array(self::$request->content, $form_name));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user