mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-10 06:23:05 -05:00
LegacyStorage: allow weird operator combinations
This allows for "a = b & c & d &" (Neteye writes such config) and for future extensions like "a = ! b"
This commit is contained in:
parent
ac33a83ee2
commit
8a3a04b5f9
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ class LegacyStorage extends Storage
|
|||
$op_name = $m[1];
|
||||
$value = $m[2];
|
||||
}
|
||||
$cmps = preg_split('~\s*\\' . $op . '\s*~', $value);
|
||||
$cmps = preg_split('~\s*\\' . $op . '\s*~', $value, -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
||||
foreach ($cmps as & $val) {
|
||||
if (strpos($val, ';') !== false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue