tactical: Avoid displaying weird empty donuts if nothing is found

refs #3334
This commit is contained in:
Johannes Meyer 2018-05-02 11:27:12 +02:00
parent 3606e5a514
commit d5686d4a18
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@
</div>
<?php endif ?>
<div class="content tactical grid">
<?php if (! count(array_filter((array) $statusSummary))): ?>
<p><?= $this->translate('No results found matching the filter.') ?></p>
</div>
<?php return; endif ?>
<div class="boxview" data-base-target="_next">
<div class="donut-container">
<h2><?= $this->translate('Host Summary') ?></h2>