X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoke.php;h=af5dacabc153f220889834fe75fe9bf3cea4f029;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=435da4dcd4facd27229767709633724529c690be;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/poke.php b/mod/poke.php index 435da4dcd4..af5dacabc1 100644 --- a/mod/poke.php +++ b/mod/poke.php @@ -52,7 +52,7 @@ function poke_init(&$a) { intval($uid) ); - if(! count($r)) { + if(! dbm::is_result($r)) { logger('poke: no contact ' . $contact_id); return; } @@ -66,7 +66,7 @@ function poke_init(&$a) { intval($parent), intval($uid) ); - if(count($r)) { + if(dbm::is_result($r)) { $parent_uri = $r[0]['uri']; $private = $r[0]['private']; $allow_cid = $r[0]['allow_cid']; @@ -159,7 +159,7 @@ function poke_content(&$a) { intval($_GET['c']), intval(local_user()) ); - if(count($r)) { + if(dbm::is_result($r)) { $name = $r[0]['name']; $id = $r[0]['id']; }