]> git.mxchange.org Git - friendica.git/commitdiff
sql errors on profile page
authorfriendica <info@friendica.com>
Sun, 15 Jul 2012 03:28:17 +0000 (20:28 -0700)
committerfriendica <info@friendica.com>
Sun, 15 Jul 2012 03:28:17 +0000 (20:28 -0700)
mod/profile.php

index 78fb5487cdc36616a7d8ec82a61fc62b96fc7f24..cc333d36ec30f49d41c9586d3764576c931d86f6 100644 (file)
@@ -206,7 +206,7 @@ function profile_content(&$a, $update = 0) {
                        FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
                        WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND
                        (`item`.`deleted` = 0 OR item.verb = '" . ACTIVITY_LIKE ."' OR item.verb = '" . ACTIVITY_DISLIKE . "')
-                       WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
+                       AND `item`.`deleted` = 0
                        and `item`.`moderated` = 0 and `item`.`unseen` = 1
                        AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
                        AND `item`.`wall` = 1