Notification Overview: Use $query->hasResult() instead of $query->count()
refs #9632
This commit is contained in:
parent
29fd849cca
commit
6f0b51ed8f
|
@ -12,13 +12,6 @@ if (! $this->compact): ?>
|
|||
</div>
|
||||
<?php endif ?>
|
||||
<div class="content">
|
||||
<?php
|
||||
|
||||
if (count($notifications) === 0) {
|
||||
echo $this->translate('No notifications found matching the filter') . '</div>';
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<table data-base-target="_next" class="action">
|
||||
<tbody>
|
||||
<?php foreach ($notifications as $notification):
|
||||
|
@ -71,4 +64,7 @@ if (count($notifications) === 0) {
|
|||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if (! $notifications->hasResult()): ?>
|
||||
<?= $this->translate('No notifications found matching the filter'); ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue