]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
Replace deprecated defaults() calls by a combination of ?? and ?: operators in mod/
[friendica.git] / mod / notifications.php
index cd572895f14b3abd23e83ca56c9558f04c0aa784..8fbc5dac4964599967fc69df58276f1fbb5dbc64 100644 (file)
@@ -78,8 +78,8 @@ function notifications_content(App $a)
                return Login::form();
        }
 
-       $page = defaults($_REQUEST, 'page', 1);
-       $show = defaults($_REQUEST, 'show', 0);
+       $page = ($_REQUEST['page'] ?? 0) ?: 1;
+       $show =  $_REQUEST['show'] ?? 0;
 
        Nav::setSelected('notifications');
 
@@ -158,7 +158,7 @@ function notifications_content(App $a)
        ];
 
        // Process the data for template creation
-       if (defaults($notifs, 'ident', '') === 'introductions') {
+       if (($notifs['ident'] ?? '') == 'introductions') {
                $sugg = Renderer::getMarkupTemplate('suggestions.tpl');
                $tpl = Renderer::getMarkupTemplate('intros.tpl');