From: Jan Schneider Date: Thu, 6 Jan 2011 17:07:38 +0000 (+0100) Subject: Only return the bare email address if there is no full name. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=37e4f7eef7135cc89a61590aa0ee33bd28ad0748;p=horde.git Only return the bare email address if there is no full name. --- diff --git a/framework/Prefs/lib/Horde/Prefs/Identity.php b/framework/Prefs/lib/Horde/Prefs/Identity.php index c8b5bdf12..6c5ca3cd5 100644 --- a/framework/Prefs/lib/Horde/Prefs/Identity.php +++ b/framework/Prefs/lib/Horde/Prefs/Identity.php @@ -388,9 +388,10 @@ class Horde_Prefs_Identity $addr = $this->getValue($this->_prefnames['from_addr']); if (empty($addr)) { $addr = $this->_user; - if (empty($from_addr)) { - return $addr; - } + } + + if (empty($from_addr)) { + return $addr; } return $from_addr . '<' . $addr . '>';