aboutsummaryrefslogtreecommitdiffstats
path: root/include/socgraph.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-01 21:27:11 -0700
committerFriendika <info@friendika.com>2011-11-01 21:27:11 -0700
commite38aa672635245cf3730fc88bbe8d36a6ecaef22 (patch)
tree8328f8d6f1ef29232228009b1bf55e792562cafb /include/socgraph.php
parent158028a0ac00e388347ac366c88ad07c0fe4bfb9 (diff)
downloadvolse-hubzilla-e38aa672635245cf3730fc88bbe8d36a6ecaef22.tar.gz
volse-hubzilla-e38aa672635245cf3730fc88bbe8d36a6ecaef22.tar.bz2
volse-hubzilla-e38aa672635245cf3730fc88bbe8d36a6ecaef22.zip
link suggestions into the main code
Diffstat (limited to 'include/socgraph.php')
-rw-r--r--include/socgraph.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/socgraph.php b/include/socgraph.php
index 04e9a9a64..b9f53d6a6 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -165,6 +165,9 @@ function common_friends($uid,$cid) {
function suggestion_query($uid, $start = 0, $limit = 40) {
+ if(! $uid)
+ return array();
+
$r = q("SELECT count(glink.gcid) as `total`, gcontact.* from gcontact
left join glink on glink.gcid = gcontact.id
where uid = %d and not gcontact.nurl in ( select nurl from contact where uid = %d)