Skip to content

A free, self-hostable news aggregator…

Stats idle: hide empty periods

Alexandre Alapetite584665eed4df
diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml
index a167fcccb..2ba5237f7 100644
--- a/app/views/stats/idle.phtml
+++ b/app/views/stats/idle.phtml
@@ -5,7 +5,10 @@
<h1><?php echo _t('stats_idle'); ?></h1>
- <?php foreach ($this->idleFeeds as $period => $feeds) { ?>
+ <?php
+ foreach ($this->idleFeeds as $period => $feeds) {
+ if (!empty($feeds)) {
+ ?>
<div class="stat">
<h2><?php echo _t($period); ?></h2>
@@ -15,5 +18,8 @@
<?php } ?>
</ul>
</div>
- <?php } ?>
+ <?php
+ }
+ }
+ ?>
</div>