initialized
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3811
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$result = '';
if (is_object($this)) {
- if (isset($this->host) && ($this->host != '')) {
- $email = $this->mailbox.'@'.$this->host;
- } else {
- $email = $this->mailbox;
- }
- if (trim($this->personal) != '') {
- if ($email) {
- $addr = '"' . $this->personal . '" <' .$email.'>';
- } else {
- $addr = $this->personal;
- }
+ $email = ($this->host ? $this->mailbox.'@'.$this->host
+ : $this->mailbox);
+ if (trim($this->personal)) {
+ $addr = ($email ? '"' . $this->personal . '" <' .$email.'>'
+ : $this->personal);
$best_dpl = $this->personal;
} else {
$addr = $email;