]> git.mxchange.org Git - friendica.git/commitdiff
too many profiles
authorfriendica <info@friendica.com>
Mon, 18 Jun 2012 02:40:16 +0000 (19:40 -0700)
committerfriendica <info@friendica.com>
Mon, 18 Jun 2012 02:40:16 +0000 (19:40 -0700)
mod/profiles.php

index a8b40c8a538286d1bb695b330a0626d71b5a9869..7b6e61ad6abf94788e8c96f1f5a87896fbcff782 100644 (file)
@@ -635,7 +635,7 @@ function profiles_content(&$a) {
        }
        else {
 
-               $r = q("SELECT `profile`.*, `contact`.`avatar-date` AS picdate FROM `profile` LEFT JOIN `contact` on `contact`.`uid` = `profile`.`uid` WHERE `profile`.`uid` = %d",
+               $r = q("SELECT `profile`.*, `contact`.`avatar-date` AS picdate FROM `profile` LEFT JOIN `contact` on `contact`.`uid` = `profile`.`uid` WHERE `profile`.`uid` = %d and contact.self = 1",
                        local_user());
                if(count($r)) {