mirror of https://github.com/MISP/MISP
fix: [sync] Pull filters ignored if no custom url params added, fixes #5594
parent
17918f916c
commit
488b66bd59
|
@ -2570,7 +2570,7 @@ class Server extends AppModel
|
|||
return $final;
|
||||
}
|
||||
$filter_rules = json_decode($filter_rules, true);
|
||||
$url_params = null;
|
||||
$url_params = array();
|
||||
foreach ($filter_rules as $field => $rules) {
|
||||
$temp = array();
|
||||
if ($field === 'url_params') {
|
||||
|
@ -2592,7 +2592,9 @@ class Server extends AppModel
|
|||
}
|
||||
}
|
||||
}
|
||||
$final = array_merge_recursive($final, $url_params);
|
||||
if (!empty($url_params)) {
|
||||
$final = array_merge_recursive($final, $url_params);
|
||||
}
|
||||
return $final;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue