]> git.mxchange.org Git - friendica.git/commitdiff
Notifications do work now again
authorMichael <heluecht@pirati.ca>
Tue, 26 Mar 2019 21:55:48 +0000 (21:55 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 26 Mar 2019 21:55:48 +0000 (21:55 +0000)
src/Content/ForumManager.php
src/Core/NotificationsManager.php

index e9dab41ef9a26da1454993918b88f63a54d22a1a..ff2e9aa6f1b6e473c0e3f08ee2bf98d7e3d5c56b 100644 (file)
@@ -199,7 +199,7 @@ class ForumManager
                $stmtContacts = DBA::p(
                        "SELECT `contact`.`id`, `contact`.`name`, COUNT(*) AS `count` FROM `item`
                                INNER JOIN `contact` ON `item`.`contact-id` = `contact`.`id`
-                               WHERE `item`.`uid` = %d AND `item`.`visible` AND NOT `item`.`deleted` AND `item`.`unseen`
+                               WHERE `item`.`uid` = ? AND `item`.`visible` AND NOT `item`.`deleted` AND `item`.`unseen`
                                AND `contact`.`network`= 'dfrn' AND (`contact`.`forum` OR `contact`.`prv`)
                                AND NOT `contact`.`blocked` AND NOT `contact`.`hidden`
                                AND NOT `contact`.`pending` AND NOT `contact`.`archive`
index bc1d1a00aa656993743b993dc9beb002ecbfea48..bd877670c62be496d00c045ba1d863c1e7e49e31 100644 (file)
@@ -563,7 +563,7 @@ class NotificationsManager extends BaseObject
                $sql_extra = "";
 
                if (!$all) {
-                       $sql_extra = " AND `ignore` = 0 ";
+                       $sql_extra = " AND NOT `ignore` ";
                }
 
                /// @todo Fetch contact details by "Contact::getDetailsByUrl" instead of queries to contact, fcontact and gcontact
@@ -578,8 +578,8 @@ class NotificationsManager extends BaseObject
                                LEFT JOIN `contact` ON `contact`.`id` = `intro`.`contact-id`
                                LEFT JOIN `gcontact` ON `gcontact`.`nurl` = `contact`.`nurl`
                                LEFT JOIN `fcontact` ON `intro`.`fid` = `fcontact`.`id`
-                       WHERE `intro`.`uid` = %d $sql_extra AND `intro`.`blocked` = 0
-                       LIMIT %d, %d",
+                       WHERE `intro`.`uid` = ? $sql_extra AND `intro`.`blocked` = 0
+                       LIMIT ?, ?",
                        intval($_SESSION['uid']),
                        intval($start),
                        intval($limit)