Fix: avoid warning (https://github.com/Dolibarr/dolibarr/issues/7993)
This commit is contained in:
parent
b70dd36ffa
commit
59a89b250d
@ -414,7 +414,7 @@ function ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0, $
|
||||
if ($forcefocus) $msg.= '.select2(\'focus\')';
|
||||
$msg.= ';'."\n";
|
||||
|
||||
if (count($events)) // If an array of js events to do were provided.
|
||||
if (is_array($events) && count($events)) // If an array of js events to do were provided.
|
||||
{
|
||||
$msg.= '
|
||||
jQuery("#'.$htmlname.'").change(function () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user