From 28d5f393307e8ec7d08172db9e88428984e71315 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 26 Oct 2019 05:03:58 +0200 Subject: [PATCH] simplify show determination --- mod/notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/notifications.php b/mod/notifications.php index da508a33c..a215f9d7a 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -78,7 +78,7 @@ function notifications_content(App $a) } $page = ($_REQUEST['page'] ?? 0) ?: 1; - $show = ($_REQUEST['show'] ?? '' === 'all'); + $show = isset($_REQUEST['show']) ? $_REQUEST['show'] : false; Nav::setSelected('notifications');