Skip to content

Commit

Permalink
Fix displaying ticket creators with names when creating tickets from …
Browse files Browse the repository at this point in the history
…emails.
  • Loading branch information
yunosh committed Mar 15, 2016
1 parent 83f896b commit e26dbe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion whups/lib/Whups.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,9 @@ public static function formatUser($user = null, $showemail = true,
}

if (!empty($name) && $showname) {
$name .= ' <' . $details['email'] . '>';
$addrOb = new Horde_Mail_Rfc822_Address($details['email']);
$addrOb->personal = $name;
$name = strval($addrOb);
} else {
$name = $details['email'];
}
Expand Down

0 comments on commit e26dbe9

Please sign in to comment.