(Hosts/Services)Controller: Cannot check `ObjectList` instance with `! empty()`
This commit is contained in:
parent
5d5b767afe
commit
e3ce1c4b2d
|
@ -105,7 +105,7 @@ class HostsController extends Controller
|
|||
}
|
||||
|
||||
$acknowledgedObjects = $this->hostList->getAcknowledgedObjects();
|
||||
if (! empty($acknowledgedObjects)) {
|
||||
if ($acknowledgedObjects->count()) {
|
||||
$removeAckForm = new RemoveAcknowledgementCommandForm();
|
||||
$removeAckForm
|
||||
->setObjects($acknowledgedObjects)
|
||||
|
|
|
@ -112,7 +112,7 @@ class ServicesController extends Controller
|
|||
}
|
||||
|
||||
$acknowledgedObjects = $this->serviceList->getAcknowledgedObjects();
|
||||
if (! empty($acknowledgedObjects)) {
|
||||
if ($acknowledgedObjects->count()) {
|
||||
$removeAckForm = new RemoveAcknowledgementCommandForm();
|
||||
$removeAckForm
|
||||
->setObjects($acknowledgedObjects)
|
||||
|
|
Loading…
Reference in New Issue