mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
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…
x
Reference in New Issue
Block a user