]> git.mxchange.org Git - friendica.git/commitdiff
Only suggest contacts with networks.
authorMichael Vogel <icarus@dabo.de>
Thu, 8 Jan 2015 10:01:55 +0000 (11:01 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 8 Jan 2015 10:01:55 +0000 (11:01 +0100)
include/socgraph.php

index 7e2bb7242bc205f02922bad8248260b332f281bb..0a8503790175ebec875046c1a2f88812dda07ce4 100644 (file)
@@ -316,7 +316,7 @@ function suggestion_query($uid, $start = 0, $limit = 80) {
        if(! $uid)
                return array();
 
-       $network = array("", NETWORK_DFRN);
+       $network = array(NETWORK_DFRN);
 
        if (get_config('system','diaspora_enabled'))
                $network[] = NETWORK_DIASPORA;
@@ -325,7 +325,8 @@ function suggestion_query($uid, $start = 0, $limit = 80) {
                $network[] = NETWORK_OSTATUS;
 
        $sql_network = implode("', '", $network);
-       $sql_network = substr($sql_network, 2)."', ''";
+       //$sql_network = "'".$sql_network."', ''";
+       $sql_network = "'".$sql_network."'";
 
        $r = q("SELECT count(glink.gcid) as `total`, gcontact.* from gcontact
                INNER JOIN glink on glink.gcid = gcontact.id