mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 05:25:15 +02:00
Rename DBA::is_result to DBA::isResult
This commit is contained in:
parent
0ec44f3e8a
commit
ecea7425f8
152 changed files with 765 additions and 765 deletions
|
@ -27,7 +27,7 @@ function salmon_post(App $a, $xml = '') {
|
|||
$r = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `account_expired` = 0 AND `account_removed` = 0 LIMIT 1",
|
||||
dbesc($nick)
|
||||
);
|
||||
if (! DBA::is_result($r)) {
|
||||
if (! DBA::isResult($r)) {
|
||||
System::httpExit(500);
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,7 @@ function salmon_post(App $a, $xml = '') {
|
|||
dbesc(normalise_link($author_link)),
|
||||
intval($importer['uid'])
|
||||
);
|
||||
if (! DBA::is_result($r)) {
|
||||
if (! DBA::isResult($r)) {
|
||||
logger('Author ' . $author_link . ' unknown to user ' . $importer['uid'] . '.');
|
||||
if(PConfig::get($importer['uid'],'system','ostatus_autofriend')) {
|
||||
$result = Contact::createFromProbe($importer['uid'], $author_link);
|
||||
|
@ -171,8 +171,8 @@ function salmon_post(App $a, $xml = '') {
|
|||
// Have we ignored the person?
|
||||
// If so we can not accept this post.
|
||||
|
||||
//if((DBA::is_result($r)) && (($r[0]['readonly']) || ($r[0]['rel'] == CONTACT_IS_FOLLOWER) || ($r[0]['blocked']))) {
|
||||
if (DBA::is_result($r) && $r[0]['blocked']) {
|
||||
//if((DBA::isResult($r)) && (($r[0]['readonly']) || ($r[0]['rel'] == CONTACT_IS_FOLLOWER) || ($r[0]['blocked']))) {
|
||||
if (DBA::isResult($r) && $r[0]['blocked']) {
|
||||
logger('Ignoring this author.');
|
||||
System::httpExit(202);
|
||||
// NOTREACHED
|
||||
|
@ -181,7 +181,7 @@ function salmon_post(App $a, $xml = '') {
|
|||
// Placeholder for hub discovery.
|
||||
$hub = '';
|
||||
|
||||
$contact_rec = ((DBA::is_result($r)) ? $r[0] : null);
|
||||
$contact_rec = ((DBA::isResult($r)) ? $r[0] : null);
|
||||
|
||||
OStatus::import($data, $importer, $contact_rec, $hub);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue