aboutsummaryrefslogtreecommitdiffstats
path: root/include/message.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-04 15:06:23 -0800
committerfriendica <info@friendica.com>2013-02-04 15:06:23 -0800
commitff0a73bf40d0503eb5a4d48be60666b73c47d4f9 (patch)
treec9c798478a127574c3aaea28a550e00a9fef9762 /include/message.php
parent421921d4d0f0327b2d62d4e1a169771a3feb7db3 (diff)
downloadvolse-hubzilla-ff0a73bf40d0503eb5a4d48be60666b73c47d4f9.tar.gz
volse-hubzilla-ff0a73bf40d0503eb5a4d48be60666b73c47d4f9.tar.bz2
volse-hubzilla-ff0a73bf40d0503eb5a4d48be60666b73c47d4f9.zip
null notice when sending private mail
Diffstat (limited to 'include/message.php')
-rw-r--r--include/message.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/message.php b/include/message.php
index 756baf15e..00cf30512 100644
--- a/include/message.php
+++ b/include/message.php
@@ -76,7 +76,7 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
dbesc($uri),
intval($channel['channel_id'])
);
- if(count($r))
+ if($r)
$post_id = $r[0]['id'];
else {
$ret['message'] = t('Stored post could not be verified.');
@@ -119,7 +119,7 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
$ret['success'] = true;
$ret['message_item'] = intval($post_id);
- return;
+ return $ret;
}