mirror of https://github.com/MISP/MISP
fix: [workflow:evaluateConfition] Fixed bug in `in_and` operator to make it order independant
parent
b5b0412022
commit
a0b92e4c7b
|
@ -213,6 +213,8 @@ class WorkflowBaseModule
|
|||
if ($operator == 'in_or') {
|
||||
return !empty($matching);
|
||||
} elseif ($operator == 'in_and') {
|
||||
sort($matching);
|
||||
sort($value);
|
||||
return array_values($matching) == array_values($value);
|
||||
} elseif ($operator == 'not_in_or') {
|
||||
return empty($matching);
|
||||
|
|
Loading…
Reference in New Issue