diff --git a/etemplate/inc/class.ajax_select_widget.inc.php b/etemplate/inc/class.ajax_select_widget.inc.php index 483e3f6bdd..f8d0476953 100644 --- a/etemplate/inc/class.ajax_select_widget.inc.php +++ b/etemplate/inc/class.ajax_select_widget.inc.php @@ -153,7 +153,11 @@ $search =& $widget->get_widget_by_name('search'); if(($cell['readonly'] || $readonlys['search']) && $options['link']) { $cell['readonly'] = false; - $readonlys['search'] = true; + if(!is_array($readonlys)) { + $readonlys = array('search' => true); + } else { + $readonlys['search'] = true; + } $search['type'] = 'label'; $search['no_lang'] = 1; $search['size'] = ',' . $options['link'];