CustomVariables: cast foreign id to int

This commit is contained in:
Thomas Gelf 2015-08-28 18:16:36 +02:00
parent 7e4067d265
commit 0c3e316bb9

View File

@ -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()) {