]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsubhubbub.php
get_basepath() uses a lot $this (which means object-referenced calls, or
[friendica.git] / mod / pubsubhubbub.php
index 5a66ccbc7cea1bc01a69ab751cb47765667269b0..bfe553c44caf1e8c91b5ee7cc74f1e2167fe3408 100644 (file)
@@ -55,7 +55,7 @@ function pubsubhubbub_init(&$a) {
                           " AND `account_expired` = 0 AND `account_removed` = 0 LIMIT 1",
                           dbesc($nick));
 
-               if(!count($r)) {
+               if (!dbm::is_result($r)) {
                        logger('pubsubhubbub: local account not found: ' . $nick);
                        http_status_exit(404);
                }
@@ -73,7 +73,7 @@ function pubsubhubbub_init(&$a) {
                $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND NOT `blocked`".
                           " AND NOT `pending` AND `self` LIMIT 1",
                           intval($owner['uid']));
-               if(!count($r)) {
+               if (!dbm::is_result($r)) {
                        logger('pubsubhubbub: contact not found.');
                        http_status_exit(404);
                }