too many profiles

This commit is contained in:
friendica 2012-06-17 19:40:16 -07:00
parent b385729c17
commit 83b9a8eb44

View 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)) {