]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsub.php
Rename DBA::is_result to DBA::isResult
[friendica.git] / mod / pubsub.php
index 1ddebf541d174d5d936fb829c802f0edc3d1373e..5fc40f83d8cb43262014c24a5774419912388f91 100644 (file)
@@ -44,7 +44,7 @@ function pubsub_init(App $a)
                $subscribe = (($hub_mode === 'subscribe') ? 1 : 0);
 
                $owner = DBA::selectFirst('user', ['uid'], ['nickname' => $nick, 'account_expired' => false, 'account_removed' => false]);
-               if (!DBA::is_result($owner)) {
+               if (!DBA::isResult($owner)) {
                        logger('Local account not found: ' . $nick);
                        hub_return(false, '');
                }
@@ -56,7 +56,7 @@ function pubsub_init(App $a)
                }
 
                $contact = DBA::selectFirst('contact', ['id', 'poll'], $condition);
-               if (!DBA::is_result($contact)) {
+               if (!DBA::isResult($contact)) {
                        logger('Contact ' . $contact_id . ' not found.');
                        hub_return(false, '');
                }
@@ -93,21 +93,21 @@ function pubsub_post(App $a)
        $contact_id = (($a->argc > 2) ? intval($a->argv[2])       : 0 );
 
        $importer = DBA::selectFirst('user', [], ['nickname' => $nick, 'account_expired' => false, 'account_removed' => false]);
-       if (!DBA::is_result($importer)) {
+       if (!DBA::isResult($importer)) {
                hub_post_return();
        }
 
        $condition = ['id' => $contact_id, 'uid' => $importer['uid'], 'subhub' => true, 'blocked' => false];
        $contact = DBA::selectFirst('contact', [], $condition);
 
-       if (!DBA::is_result($contact)) {
+       if (!DBA::isResult($contact)) {
                $author = OStatus::salmonAuthor($xml, $importer);
                if (!empty($author['contact-id'])) {
                        $condition = ['id' => $author['contact-id'], 'uid' => $importer['uid'], 'subhub' => true, 'blocked' => false];
                        $contact = DBA::selectFirst('contact', [], $condition);
                        logger('No record for ' . $nick .' with contact id ' . $contact_id . ' - using '.$author['contact-id'].' instead.');
                }
-               if (!DBA::is_result($contact)) {
+               if (!DBA::isResult($contact)) {
                        logger('Contact ' . $author["author-link"] . ' (' . $contact_id . ') for user ' . $nick . " wasn't found - ignored. XML: " . $xml);
                        hub_post_return();
                }