mirror of https://github.com/MISP/MISP
chg: Add the possibility to specify a "type" instead of a list of "types" in the enrichment modules
parent
903b1d8b4a
commit
053b0453cb
|
@ -2850,6 +2850,9 @@ class Event extends AppModel {
|
|||
if (!is_array($r['values'])) {
|
||||
$r['values'] = array($r['values']);
|
||||
}
|
||||
if (!isset($r['types']) && isset($r['type'])) {
|
||||
$r['types'] = array($r['type']);
|
||||
}
|
||||
if (!is_array($r['types'])) {
|
||||
$r['types'] = array($r['types']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue