aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-17 19:40:16 -0700
committerfriendica <info@friendica.com>2012-06-17 19:40:16 -0700
commit83b9a8eb44e5c4abbe7018c2228b488d3ecd437a (patch)
treeadd9c3efd2810f2673f573103836674b54d1cb97
parentb385729c17c320e133bd27523b8ddaccdd05f53d (diff)
downloadvolse-hubzilla-83b9a8eb44e5c4abbe7018c2228b488d3ecd437a.tar.gz
volse-hubzilla-83b9a8eb44e5c4abbe7018c2228b488d3ecd437a.tar.bz2
volse-hubzilla-83b9a8eb44e5c4abbe7018c2228b488d3ecd437a.zip
too many profiles
-rw-r--r--mod/profiles.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index a8b40c8a5..7b6e61ad6 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -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)) {