From: pdontthink Date: Sun, 1 Apr 2012 20:35:47 +0000 (+0000) Subject: Fix PHP notices X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3243368996ca5c6beec0a4f4153aa7db776e322b;p=squirrelmail.git Fix PHP notices git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14306 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index fb0a9c57..09cf6c38 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1751,14 +1751,16 @@ function deliverMessage(&$composeMessage, $draft=false) { } if (!$success) { // $deliver->dlv_server_msg is not always server's reply - $msg = _("Message not sent.") . "
\n" . - $deliver->dlv_msg; + $msg = _("Message not sent.") + . "
\n" + . (isset($deliver->dlv_msg) ? $deliver->dlv_msg : ''); if (!empty($deliver->dlv_server_msg)) { // add 'server replied' part only when it is not empty. // Delivery error can be generated by delivery class itself - $msg.='
' . - _("Server replied:") . ' ' . $deliver->dlv_ret_nr . ' ' . - nl2br(htmlspecialchars($deliver->dlv_server_msg)); + $msg .= '
' + . _("Server replied:") . ' ' + . (isset($deliver->dlv_ret_nr) ? $deliver->dlv_ret_nr . ' ' : '') + . nl2br(htmlspecialchars($deliver->dlv_server_msg)); } plain_error_message($msg); } else {