diff --git a/lib/Cake/Network/Email/MailTransport.php b/lib/Cake/Network/Email/MailTransport.php index 3b40f21c1..4471394e6 100644 --- a/lib/Cake/Network/Email/MailTransport.php +++ b/lib/Cake/Network/Email/MailTransport.php @@ -72,12 +72,12 @@ class MailTransport extends AbstractTransport { //@codingStandardsIgnoreStart if (!@mail($to, $subject, $message, $headers)) { $error = error_get_last(); - $msg = 'Could not send email: ' . isset($error['message']) ? $error['message'] : 'unknown'; + $msg = 'Could not send email: ' . (isset($error['message']) ? $error['message'] : 'unknown'); throw new SocketException($msg); } } elseif (!@mail($to, $subject, $message, $headers, $params)) { $error = error_get_last(); - $msg = 'Could not send email: ' . isset($error['message']) ? $error['message'] : 'unknown'; + $msg = 'Could not send email: ' . (isset($error['message']) ? $error['message'] : 'unknown'); //@codingStandardsIgnoreEnd throw new SocketException($msg); }