if(! $uid)
return array();
- $network = array("", NETWORK_DFRN);
+ $network = array(NETWORK_DFRN);
if (get_config('system','diaspora_enabled'))
$network[] = NETWORK_DIASPORA;
$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