mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
IcingaServiceForm: fix phpcs complaint
This commit is contained in:
parent
6790ff1c30
commit
85ea19d12e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user