CustomVariable: fix boolean condition
This commit is contained in:
parent
180b3384ed
commit
bff5d328c2
|
@ -143,7 +143,7 @@ abstract class CustomVariable implements IcingaConfigRenderer
|
|||
} elseif (is_array($value)) {
|
||||
|
||||
foreach (array_keys($value) as $k) {
|
||||
if (! is_int($k) || ctype_digit($k)) {
|
||||
if (! (is_int($k) || ctype_digit($k))) {
|
||||
return new CustomVariableDictionary($key, $value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue