chg: Add the possibility to specify a "type" instead of a list of "types" in the enrichment modules

pull/1709/head
Iglocska 2016-12-01 12:14:53 +01:00
parent 903b1d8b4a
commit 053b0453cb
1 changed files with 3 additions and 0 deletions

View File

@ -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']);
}