X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=afe25cbe8be9dfeb3fa0ac86c1023baa864f0e82;hb=a9bed1422e0a476df17a9e6edefce1925404184d;hp=8642624a476e4b75c3c0f7dbb99cf5ba0e5ebbab;hpb=1dd77ee443f700c4f48e8b655ceef968b8fbb753;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index 8642624a47..afe25cbe8b 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -22,7 +22,7 @@ function wallmessage_post(&$a) { dbesc($recipient) ); - if(! count($r)) { + if (! dbm::is_result($r)) { logger('wallmessage: no recipient'); return; } @@ -91,7 +91,7 @@ function wallmessage_content(&$a) { dbesc($recipient) ); - if(! count($r)) { + if (! dbm::is_result($r)) { notice( t('No recipient.') . EOL); logger('wallmessage: no recipient'); return;