X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=03a0b7a16f57e0e3aafbf3683792ea06dbb68cd6;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=8642624a476e4b75c3c0f7dbb99cf5ba0e5ebbab;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index 8642624a47..03a0b7a16f 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;