Merge pull request #9994 from ptibogxiv/patch-91
Fix Invalid argument supplied for foreach()
This commit is contained in:
commit
ca3510e889
@ -8,9 +8,12 @@ if (empty($conf) || ! is_object($conf))
|
||||
}
|
||||
|
||||
// Loop to complete $param for extrafields
|
||||
if (! empty($search_array_options)) // $extrafieldsobject is the $object->table_element like 'societe', 'socpeople', ...
|
||||
{
|
||||
foreach ($search_array_options as $key => $val)
|
||||
{
|
||||
$crit=$val;
|
||||
$tmpkey=preg_replace('/search_options_/','',$key);
|
||||
if ($val != '') $param.='&search_options_'.$tmpkey.'='.urlencode($val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user