- // It doesn't make sense to show the Show unread / Show all link visible if the user is on the
- // "Show all" page and there are no notifications. So we will hide it.
- if ($show == 0 || intval($show) && $notifs['total'] > 0) {
- $notif_show_lnk = [
- 'href' => ($show ? 'notifications/'.$notifs['ident'] : 'notifications/'.$notifs['ident'].'?show=all' ),
- 'text' => ($show ? L10n::t('Show unread') : L10n::t('Show all')),
- ];
- }
+ $notif_show_lnk = [
+ 'href' => ($show ? 'notifications/'.$notifs['ident'] : 'notifications/'.$notifs['ident'].'?show=all' ),
+ 'text' => ($show ? L10n::t('Show unread') : L10n::t('Show all')),
+ ];