CustomVariables: fix method calls

This commit is contained in:
Thomas Gelf 2015-06-24 09:43:48 +02:00
parent a2790652ec
commit ac5bfd32f3
1 changed files with 2 additions and 2 deletions

View File

@ -136,14 +136,14 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
}
$where = $db->quoteInto(sprintf('%s = ?', $foreignColumn), $foreignId)
. $this->quoteInto(' AND varname = ?', $var->getKey());
. $db->quoteInto(' AND varname = ?', $var->getKey());
if ($var->hasBeenDeleted()) {
$db->delete($table, $where);
} elseif ($var->hasBeenModified()) {
$db->update(
$table,
array('varvalue' => $var->getValueForDb()),
array('varvalue' => $var->getDbValue()),
$where
);
}