]> git.mxchange.org Git - friendica.git/blobdiff - include/NotificationsManager.php
Merge pull request #2744 from tobiasd/20160820-cal
[friendica.git] / include / NotificationsManager.php
index 6962d02cc082c11351d42d27fcef789045b688ad..3b7cbdfc999e89d7086eaae71242d829d790b22c 100644 (file)
@@ -662,7 +662,7 @@ class NotificationsManager {
        private function introTotal($all = false) {
                $sql_extra = "";
 
-               if($all === false)
+               if(!$all)
                        $sql_extra = " AND `ignore` = 0 ";
 
                $r = q("SELECT COUNT(*) AS `total` FROM `intro`
@@ -696,7 +696,7 @@ class NotificationsManager {
                $notifs = array();
                $sql_extra = "";
 
-               if($all === false)
+               if(!$all)
                        $sql_extra = " AND `ignore` = 0 ";
 
                /// @todo Fetch contact details by "get_contact_details_by_url" instead of queries to contact, fcontact and gcontact