]> git.mxchange.org Git - friendica.git/commitdiff
Restore display when there aren't unread notifications
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 6 Sep 2018 22:42:57 +0000 (18:42 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Thu, 6 Sep 2018 22:42:57 +0000 (18:42 -0400)
mod/notifications.php

index 091323d998c725b136ad038abe5f185b6cbaba2c..5feb3be19abcb7fdd1d70ce73d91e8f60d313548 100644 (file)
@@ -308,18 +308,15 @@ function notifications_content(App $a)
                                '$item_seen' => $it['seen'],
                        ]);
                }
-
-               $notif_show_lnk = [
-                       'href' => ($show ? 'notifications/'.$notifs['ident'] : 'notifications/'.$notifs['ident'].'?show=all' ),
-                       'text' => ($show ? L10n::t('Show unread') : L10n::t('Show all')),
-               ];
-
-               // Output if there aren't any notifications available
-               if (count($notifs['notifications']) == 0) {
-                       $notif_nocontent = L10n::t('No more %s notifications.', $notifs['ident']);
-               }
+       } else {
+               $notif_nocontent = L10n::t('No more %s notifications.', $notifs['ident']);
        }
 
+       $notif_show_lnk = [
+               'href' => ($show ? 'notifications/'.$notifs['ident'] : 'notifications/'.$notifs['ident'].'?show=all' ),
+               'text' => ($show ? L10n::t('Show unread') : L10n::t('Show all')),
+       ];
+
        $o .= replace_macros($notif_tpl, [
                '$notif_header' => $notif_header,
                '$tabs' => $tabs,