IcingaObjectLegacyAssignments: Fix incorrect if condition

This commit is contained in:
Sukhwinder Dhillon 2024-01-17 15:05:59 +01:00 committed by Johannes Meyer
parent bb8076a09d
commit c9e78ba7d5

View File

@ -36,7 +36,7 @@ class IcingaObjectLegacyAssignments
$assigns = array();
$ignores = array();
foreach ($values as $type => $value) {
if (strpos($value, '|') !== false || strpos($value, '&' !== false)) {
if (strpos($value, '|') !== false || strpos($value, '&') !== false) {
$value = '(' . $value . ')';
}