use Friendica\Core\System;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
-use Friendica\Database\DBM;
use Friendica\Network\Probe;
use Friendica\Protocol\PortableContact;
use Friendica\Util\DateTimeFormat;
intval($zcid)
);
- if (!DBM::is_result($r)) {
+ if (!DBA::isResult($r)) {
q(
"INSERT INTO `glink` (`cid`, `uid`, `gcid`, `zcid`, `updated`) VALUES (%d, %d, %d, %d, '%s') ",
intval($cid),
dbesc(normalise_link($gcontact['url'])),
dbesc(NETWORK_STATUSNET)
);
- if (DBM::is_result($r)) {
+ if (DBA::isResult($r)) {
$gcontact['network'] = $r[0]["network"];
}
dbesc(normalise_link($gcontact['url'])),
dbesc(NETWORK_STATUSNET)
);
- if (DBM::is_result($r)) {
+ if (DBA::isResult($r)) {
$gcontact['network'] = $r[0]["network"];
}
}
dbesc(normalise_link($gcontact['url']))
);
- if (DBM::is_result($x)) {
+ if (DBA::isResult($x)) {
if (!isset($gcontact['network']) && ($x[0]["network"] != NETWORK_STATUSNET)) {
$gcontact['network'] = $x[0]["network"];
}
);
// logger("countCommonFriends: $uid $cid {$r[0]['total']}");
- if (DBM::is_result($r)) {
+ if (DBA::isResult($r)) {
return $r[0]['total'];
}
return 0;
intval($uid)
);
- if (DBM::is_result($r)) {
+ if (DBA::isResult($r)) {
return $r[0]['total'];
}
intval($limit)
);
- /// @TODO Check all calling-findings of this function if they properly use DBM::is_result()
+ /// @TODO Check all calling-findings of this function if they properly use DBA::isResult()
return $r;
}
intval($limit)
);
- /// @TODO Check all calling-findings of this function if they properly use DBM::is_result()
+ /// @TODO Check all calling-findings of this function if they properly use DBA::isResult()
return $r;
}
intval($uid)
);
- if (DBM::is_result($r)) {
+ if (DBA::isResult($r)) {
return $r[0]['total'];
}
intval($limit)
);
- /// @TODO Check all calling-findings of this function if they properly use DBM::is_result()
+ /// @TODO Check all calling-findings of this function if they properly use DBA::isResult()
return $r;
}
intval($limit)
);
- if (DBM::is_result($r) && count($r) >= ($limit -1)) {
+ if (DBA::isResult($r) && count($r) >= ($limit -1)) {
/*
* Uncommented because the result of the queries are to big to store it in the cache.
* We need to decide if we want to change the db column type or if we want to delete it.
dbesc(NETWORK_DIASPORA)
);
- if (DBM::is_result($r)) {
+ if (DBA::isResult($r)) {
foreach ($r as $rr) {
$base = substr($rr['poco'], 0, strrpos($rr['poco'], '/'));
if (! in_array($base, $done)) {
dbesc(normalise_link($contact["url"]))
);
- if (DBM::is_result($r)) {
+ if (DBA::isResult($r)) {
$gcontact_id = $r[0]["id"];
// Update every 90 days
dbesc(normalise_link($contact["url"]))
);
- if (DBM::is_result($r)) {
+ if (DBA::isResult($r)) {
$gcontact_id = $r[0]["id"];
$doprobing = in_array($r[0]["network"], [NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS, ""]);
/// @todo Check if we really should do this.
// The quality of the gcontact table is mostly lower than the public contact
$public_contact = DBA::selectFirst('contact', ['id'], ['nurl' => normalise_link($contact["url"]), 'uid' => 0]);
- if (DBM::is_result($public_contact)) {
+ if (DBA::isResult($public_contact)) {
logger("Update public contact ".$public_contact["id"], LOGGER_DEBUG);
Contact::updateAvatar($contact["photo"], 0, $public_contact["id"]);
dbesc($last_update)
);
- if (!DBM::is_result($r)) {
+ if (!DBA::isResult($r)) {
return;
}
dbesc(NETWORK_DFRN)
);
- if (DBM::is_result($r)) {
+ if (DBA::isResult($r)) {
return dirname($r[0]['url']);
}