]> git.mxchange.org Git - friendica.git/blobdiff - mod/wallmessage.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / wallmessage.php
index 8642624a476e4b75c3c0f7dbb99cf5ba0e5ebbab..03a0b7a16f57e0e3aafbf3683792ea06dbb68cd6 100644 (file)
@@ -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;