From a4e746784e5d317a75495014c4e7fdd32bb95f1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 1 Dec 2011 22:52:18 +0100 Subject: [PATCH] Implode will already return an empty string. --- wcfsetup/install/files/lib/system/mail/Mail.class.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/lib/system/mail/Mail.class.php b/wcfsetup/install/files/lib/system/mail/Mail.class.php index 7d202dc109..106adbcf4e 100644 --- a/wcfsetup/install/files/lib/system/mail/Mail.class.php +++ b/wcfsetup/install/files/lib/system/mail/Mail.class.php @@ -220,8 +220,7 @@ class Mail { * @return string */ public function getToString() { - if (!empty($this->to)) return implode(', ', $this->to); - else return ''; + return implode(', ', $this->to); } /** @@ -314,8 +313,7 @@ class Mail { * @return string */ public function getCCString() { - if (!empty($this->cc)) return implode(', ', $this->cc); - else return ''; + return implode(', ', $this->cc); } /** @@ -349,8 +347,7 @@ class Mail { * @return string */ public function getBCCString() { - if (!empty($this->bcc)) return implode(', ', $this->bcc); - else return ''; + return implode(', ', $this->bcc); } /** -- 2.20.1