null notice when sending private mail

This commit is contained in:
friendica 2013-02-04 15:06:23 -08:00
parent 421921d4d0
commit ff0a73bf40
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -1 +1 @@
2013-02-03.220
2013-02-04.221