X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmessage.php;h=d3153de05a13a1d4d378a4a7a3e1da9f10f4c8ab;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=4bd73d0cee9d36da73e625d467457843d4a4fe2a;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/message.php b/mod/message.php index 4bd73d0cee..d3153de05a 100644 --- a/mod/message.php +++ b/mod/message.php @@ -242,7 +242,7 @@ function message_content(&$a) { intval($a->argv[2]), intval(local_user()) ); - if(count($r)) { + if(dbm::is_result($r)) { $parent = $r[0]['parent-uri']; $convid = $r[0]['convid']; @@ -321,7 +321,7 @@ function message_content(&$a) { dbesc(base64_decode($a->argv[2])) ); } - if(count($r)) { + if(dbm::is_result($r)) { $prename = $r[0]['name']; $preurl = $r[0]['url']; $preid = $r[0]['id']; @@ -405,7 +405,7 @@ function message_content(&$a) { intval(local_user()), intval($a->argv[1]) ); - if(count($r)) { + if(dbm::is_result($r)) { $contact_id = $r[0]['contact-id']; $convid = $r[0]['convid'];