mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
IcingaObjectLegacyAssignments: Fix incorrect if condition
This commit is contained in:
parent
bb8076a09d
commit
c9e78ba7d5
@ -36,7 +36,7 @@ class IcingaObjectLegacyAssignments
|
|||||||
$assigns = array();
|
$assigns = array();
|
||||||
$ignores = array();
|
$ignores = array();
|
||||||
foreach ($values as $type => $value) {
|
foreach ($values as $type => $value) {
|
||||||
if (strpos($value, '|') !== false || strpos($value, '&' !== false)) {
|
if (strpos($value, '|') !== false || strpos($value, '&') !== false) {
|
||||||
$value = '(' . $value . ')';
|
$value = '(' . $value . ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user