mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Event Overview: Use $query->hasResult() instead of $query->count()
refs #9632
This commit is contained in:
parent
f03b9e5769
commit
8a5b5390da
@ -12,12 +12,6 @@ if (! $this->compact): ?>
|
|||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<?php
|
|
||||||
if (count($history) === 0) {
|
|
||||||
echo $this->translate('No history events found matching the filter') . '</div>';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<table data-base-target="_next" class="action">
|
<table data-base-target="_next" class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($history as $event): ?>
|
<?php foreach ($history as $event): ?>
|
||||||
@ -96,4 +90,7 @@ if (count($history) === 0) {
|
|||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<?php if (! $history->hasResult()): ?>
|
||||||
|
<?= $this->translate('No history events found matching the filter'); ?>
|
||||||
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user