forked from extern/egroupware
Make sure to always call typeOptions() with a string
(to satisfy Scrutenizer)
This commit is contained in:
parent
ceea2cb976
commit
71ffd661ac
@ -864,6 +864,10 @@ class Select extends Etemplate\Widget
|
||||
public static function ajax_get_options($type, $attributes, $value = null)
|
||||
{
|
||||
$no_lang = false;
|
||||
if(is_array($attributes))
|
||||
{
|
||||
$attributes = implode(',',$attributes);
|
||||
}
|
||||
$options = self::typeOptions($type, $attributes,$no_lang,false,$value);
|
||||
self::fix_encoded_options($options,true);
|
||||
$response = Api\Json\Response::get();
|
||||
|
Loading…
Reference in New Issue
Block a user