added check for $$search_array_options
This commit is contained in:
stepanych 2021-10-03 01:08:22 +02:00
parent 2f813e0b6a
commit b1eb1c1070

View File

@ -618,11 +618,13 @@ if ($search_ref_supplier) {
$param .= "&search_ref_supplier=".urlencode($search_ref_supplier);
}
// Add $param from extra fields
foreach ($search_array_options as $key => $val) {
$crit = $val;
$tmpkey = preg_replace('/search_options_/', '', $key);
if ($val != '') {
$param .= '&search_options_'.$tmpkey.'='.urlencode($val);
if ($search_array_options) {
foreach ($search_array_options as $key => $val) {
$crit = $val;
$tmpkey = preg_replace('/search_options_/', '', $key);
if ($val != '') {
$param .= '&search_options_' . $tmpkey . '=' . urlencode($val);
}
}
}