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 89bd64b commit 549a51d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Whups.php
Expand Up @@ -784,7 +784,9 @@ static public 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 549a51d

Please sign in to comment.