]> git.mxchange.org Git - friendica.git/commitdiff
Fix SQL error for missing AND operator
authorOlaf Conradi <olaf@conradi.org>
Sun, 3 Mar 2013 19:44:52 +0000 (20:44 +0100)
committerOlaf Conradi <olaf@conradi.org>
Sun, 3 Mar 2013 19:44:52 +0000 (20:44 +0100)
AND operator was missing from WHERE clause

mod/notifications.php

index 9c14737f7ffb3e6c36718ab0370661f7d03b6dc6..c7f8e1bbd912e9cab3e97d9a1db9d87c6ca76aa9 100644 (file)
@@ -233,7 +233,7 @@ function notifications_content(&$a) {
                                `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object` as `object`, 
                                `pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink` 
                                FROM `item` INNER JOIN `item` as `pitem` ON  `pitem`.`id`=`item`.`parent`
-                               WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND `pitem`.`parent` != 0
+                               WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND `pitem`.`parent` != 0 AND
                                 `item`.`deleted` = 0 AND `item`.`uid` = %d AND `item`.`wall` = 0 ORDER BY `item`.`created` DESC" ,
                        intval(local_user())
                );