]> git.mxchange.org Git - friendica.git/commitdiff
simplify show determination
authorPhilipp Holzer <admin+github@philipp.info>
Sat, 26 Oct 2019 03:03:58 +0000 (05:03 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Sat, 26 Oct 2019 03:03:58 +0000 (05:03 +0200)
mod/notifications.php

index da508a33c253d715121e4f3f3127c2eb2e6961ba..a215f9d7a6e6a08cbae9ccad429ce88709b6872f 100644 (file)
@@ -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');