diff --git a/library/Director/CustomVariable/CustomVariables.php b/library/Director/CustomVariable/CustomVariables.php index 61aa6cc8..f1a734cd 100644 --- a/library/Director/CustomVariable/CustomVariables.php +++ b/library/Director/CustomVariable/CustomVariables.php @@ -140,7 +140,7 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer continue; } - $where = $db->quoteInto(sprintf('%s = ?', $foreignColumn), $foreignId) + $where = $db->quoteInto(sprintf('%s = ?', $foreignColumn), (int) $foreignId) . $db->quoteInto(' AND varname = ?', $var->getKey()); if ($var->hasBeenDeleted()) {