From bff5d328c247f210dc7a852de3df82fdf687b42a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 9 Nov 2015 18:29:19 +0100 Subject: [PATCH] CustomVariable: fix boolean condition --- library/Director/CustomVariable/CustomVariable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/CustomVariable/CustomVariable.php b/library/Director/CustomVariable/CustomVariable.php index c34ebf0f..4fee15f0 100644 --- a/library/Director/CustomVariable/CustomVariable.php +++ b/library/Director/CustomVariable/CustomVariable.php @@ -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); } }