X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fpubsubhubbub.php;h=bfe553c44caf1e8c91b5ee7cc74f1e2167fe3408;hb=c43e9aa74ee1f68249ea2dd77f0553201fcb1239;hp=5d7621cc745fdf648cd1dc79d83342d09ccbe694;hpb=743f2e0391315d6945b5c53a4d08938ee85e6aed;p=friendica.git diff --git a/mod/pubsubhubbub.php b/mod/pubsubhubbub.php index 5d7621cc74..bfe553c44c 100644 --- a/mod/pubsubhubbub.php +++ b/mod/pubsubhubbub.php @@ -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); } @@ -132,7 +132,7 @@ function pubsubhubbub_init(&$a) { // if we are just updating an old subscription, keep the // old values for push and last_update - if (count($r)) { + if (dbm::is_result($r)) { $last_update = $r[0]['last_update']; $push_flag = $r[0]['push']; }