From 905341717960ea444f9937867c0e5770f5eab0b4 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Thu, 16 Oct 2014 11:55:59 +0200 Subject: [PATCH] fix small bug in direct messages api --- include/api.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/api.php b/include/api.php index db55c05fed..e22fb9d74a 100644 --- a/include/api.php +++ b/include/api.php @@ -2295,12 +2295,10 @@ $recipient = $user_info; $sender = api_get_user($a,normalise_link($item['contact-url'])); } - elseif ($box == "sentbox" || $item['from-url'] != $profile_url){ + elseif ($box == "sentbox" || $item['from-url'] == $profile_url){ $recipient = api_get_user($a,normalise_link($item['contact-url'])); $sender = $user_info; - } - $ret[]=api_format_messages($item, $recipient, $sender); } -- 2.39.5