X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fmessage.php;h=041110440450df8fdf0729b23075a32cc386253d;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=51f3ad805a667fcbd45242625bb4f539d96d145c;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/include/message.php b/include/message.php index 51f3ad805a..0411104404 100644 --- a/include/message.php +++ b/include/message.php @@ -41,7 +41,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){ dbesc($replyto), dbesc($replyto) ); - if(count($r)) + if(dbm::is_result($r)) $convid = $r[0]['convid']; } @@ -74,7 +74,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){ dbesc($conv_guid), intval(local_user()) ); - if(count($r)) + if(dbm::is_result($r)) $convid = $r[0]['id']; } @@ -113,7 +113,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){ dbesc($uri), intval(local_user()) ); - if(count($r)) + if(dbm::is_result($r)) $post_id = $r[0]['id']; /** @@ -210,7 +210,7 @@ function send_wallmessage($recipient='', $body='', $subject='', $replyto=''){ dbesc($conv_guid), intval($recipient['uid']) ); - if(count($r)) + if(dbm::is_result($r)) $convid = $r[0]['id']; if(! $convid) {