Advertisement
Guest User

The Patch

a guest
Nov 23rd, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.82 KB | None | 0 0
  1. @@ -413,6 +413,11 @@
  2.                 $tofromusername = $message['tousername'];
  3.                 $tofromuid = $message['toid'];
  4.             }
  5. +                        else if(count($recipients['to']) == 1) {
  6. +                               $tofromuid = $recipients['to'][0];
  7. +                               $user = $cached_users[$tofromuid];
  8. +                               $tofromusername = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
  9. +                        }
  10.             else
  11.             {
  12.                 $tofromusername = $lang->not_sent;
  13. @@ -1731,6 +1736,7 @@
  14.     {
  15.         if($message['folder'] == 2 || $message['folder'] == 3)
  16.         { // Sent Items or Drafts Folder Check
  17. +           $recipients = unserialize($message['recipients']);
  18.             if($message['toid'])
  19.             {
  20.                 $tofromuid = $message['toid'];
  21. @@ -1743,6 +1749,11 @@
  22.                     $tofromusername = build_profile_link($message['tousername'], $tofromuid);
  23.                 }
  24.             }
  25. +                        else if(count($recipients['to']) == 1) {
  26. +                               $tofromuid = $recipients['to'][0];
  27. +                               $user = $cached_users[$tofromuid];
  28. +                               $tofromusername = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
  29. +                        }
  30.             else
  31.             {
  32.                 $tofromusername = $lang->not_sent;
  33. @@ -2064,6 +2075,11 @@
  34.                     $tofromusername = $message['tousername'];
  35.                     $tofromuid = $message['toid'];
  36.                 }
  37. +                           else if(count($recipients['to']) == 1) {
  38. +                                   $tofromuid = $recipients['to'][0];
  39. +                                   $user = $cached_users[$tofromuid];
  40. +                                   $tofromusername = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
  41. +                           }
  42.                 else
  43.                 {
  44.                     $tofromusername = $lang->not_sent;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement