]> git.mxchange.org Git - friendica.git/commitdiff
Fix ignored show_in_notification_page parameter in notification()
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Oct 2018 15:30:39 +0000 (11:30 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Oct 2018 15:30:39 +0000 (11:30 -0400)
include/enotify.php

index b184a6935e08add322c137ccfa63cba6c2c469ff..882227e941d0d98f68239035ce8f42602ec8faad 100644 (file)
@@ -84,7 +84,7 @@ function notification($params)
        // with $params['show_in_notification_page'] == false, the notification isn't inserted into
        // the database, and an email is sent if applicable.
        // default, if not specified: true
-       $show_in_notification_page = ((x($params, 'show_in_notification_page')) ? $params['show_in_notification_page']:true);
+       $show_in_notification_page = isset($params['show_in_notification_page']) ? $params['show_in_notification_page'] : true;
 
        $additional_mail_header = "";
        $additional_mail_header .= "Precedence: list\n";