From 1d624d041fb12162eaae3a428e8eca57dc91d50a Mon Sep 17 00:00:00 2001 From: maTh Date: Tue, 7 Dec 2021 23:19:58 +0100 Subject: Fix: global view does not show "no articles to show" alert (#4042) * fix * phpcs fixed * fix JS --- app/views/index/global.phtml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'app/views/index') diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml index 5b7e886e8..306c6604b 100644 --- a/app/views/index/global.phtml +++ b/app/views/index/global.phtml @@ -20,11 +20,14 @@ 'params' => $params, ); + $unreadArticles = 0; + foreach ($this->categories as $cat) { $feeds = $cat->feeds(); $url_base['params']['get'] = 'c_' . $cat->id(); if (!empty($feeds)) { + $unreadArticles += $cat->nbNotRead(); ?>