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:
Johannes Meyer 2015-04-09 15:30:21 +02:00
parent ea874f8402
commit 3d09615851
1 changed files with 1 additions and 1 deletions

View File

@ -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 ?>