diff --git a/build/MagnusBilling-current.tar.gz b/build/MagnusBilling-current.tar.gz index 3d0a1d212..02100ac8f 100644 Binary files a/build/MagnusBilling-current.tar.gz and b/build/MagnusBilling-current.tar.gz differ diff --git a/protected/components/Mail.php b/protected/components/Mail.php index a37a7d0d8..ac0704886 100755 --- a/protected/components/Mail.php +++ b/protected/components/Mail.php @@ -392,7 +392,9 @@ public function send($to_email = null) $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; $mail->MsgHTML($this->message); $mail->AddAddress($this->to_email); - $mail->AddAddress($this->to_email2); + if (strlen($this->to_email2)) { + $mail->AddAddress($this->to_email2); + } $mail->CharSet = 'utf-8'; ob_start(); @$mail->Send();