IcingaServiceForm: fix phpcs complaint

This commit is contained in:
Thomas Gelf 2018-06-05 11:37:02 +02:00
parent 6790ff1c30
commit 85ea19d12e

View File

@ -203,10 +203,10 @@ class IcingaServiceForm extends DirectorObjectForm
$db = $this->db->getDbAdapter();
if ($this->providesOverrides()) {
$this->blacklisted = 1 === (int)$db->fetchOne(
$db->select()->from('icinga_host_service_blacklist', 'COUNT(*)')
->where('host_id = ?', $host->get('id'))
->where('service_id = ?', $service->get('id'))
);
$db->select()->from('icinga_host_service_blacklist', 'COUNT(*)')
->where('host_id = ?', $host->get('id'))
->where('service_id = ?', $service->get('id'))
);
} else {
$this->blacklisted = false;
}