mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +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)) {
|
} elseif (is_array($value)) {
|
||||||
|
|
||||||
foreach (array_keys($value) as $k) {
|
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);
|
return new CustomVariableDictionary($key, $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user