Fix that the user isn't being notified that no events were found
empty() seems not work if subqueries are involved.
This commit is contained in:
parent
ea874f8402
commit
3d09615851
|
@ -22,7 +22,7 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||
|
||||
<div class="content">
|
||||
<?= $this->filterEditor ?>
|
||||
<?php if (empty($history)): ?>
|
||||
<?php if (count($history) === 0): ?>
|
||||
<?= $this->translate('No history events matching the filter') ?>
|
||||
</div>
|
||||
<?php return; endif ?>
|
||||
|
|
Loading…
Reference in New Issue