$r = q("select `poco`, `uid` from `contact` where `id` = %d limit 1",
intval($cid)
);
- if(dbm::is_result($r)) {
+ if (dbm::is_result($r)) {
$url = $r[0]['poco'];
$uid = $r[0]['uid'];
}
$r = q("SELECT `network` FROM `contact` WHERE `nurl` = '%s' AND `network` != '' AND `network` != '%s' LIMIT 1",
dbesc(normalise_link($profile_url)), dbesc(NETWORK_STATUSNET)
);
- if(dbm::is_result($r))
+ if (dbm::is_result($r))
$network = $r[0]["network"];
if (($network == "") OR ($network == NETWORK_OSTATUS)) {
$r = q("SELECT `network`, `url` FROM `contact` WHERE `alias` IN ('%s', '%s') AND `network` != '' AND `network` != '%s' LIMIT 1",
dbesc($profile_url), dbesc(normalise_link($profile_url)), dbesc(NETWORK_STATUSNET)
);
- if(dbm::is_result($r)) {
+ if (dbm::is_result($r)) {
$network = $r[0]["network"];
//$profile_url = $r[0]["url"];
}
);
// logger("count_common_friends: $uid $cid {$r[0]['total']}");
- if(dbm::is_result($r))
+ if (dbm::is_result($r))
return $r[0]['total'];
return 0;
intval($uid)
);
- if(dbm::is_result($r))
+ if (dbm::is_result($r))
return $r[0]['total'];
return 0;
intval($uid)
);
- if(dbm::is_result($r))
+ if (dbm::is_result($r))
return $r[0]['total'];
return 0;
dbesc(NETWORK_DFRN), dbesc(NETWORK_DIASPORA)
);
- if(dbm::is_result($r)) {
+ if (dbm::is_result($r)) {
foreach($r as $rr) {
$base = substr($rr['poco'],0,strrpos($rr['poco'],'/'));
if(! in_array($base,$done))