* Made errorCheck work as desired
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1294
7612ce4b-ef26-0410-bec9-
ea0150e637f0
fputs($smtpConnection, ".\r\n"); // end the DATA part
$tmp = fgets($smtpConnection, 1024);
fputs($smtpConnection, ".\r\n"); // end the DATA part
$tmp = fgets($smtpConnection, 1024);
- $num = errorCheck($tmp, $smtpConnection, verbose);
+ $num = errorCheck($tmp, $smtpConnection, true);
if ($num != 250) {
$tmp = nl2br(htmlspecialchars($tmp));
displayPageHeader($color, 'None');
if ($num != 250) {
$tmp = nl2br(htmlspecialchars($tmp));
displayPageHeader($color, 'None');
- function errorCheck($line, $smtpConnection) {
+ function errorCheck($line, $smtpConnection, $verbose = false) {
global $color;
include '../functions/page_header.php';
global $color;
include '../functions/page_header.php';
$msg = $message . "<br>\nServer replied: $lines";
plain_error_message($msg, $color);
}
$msg = $message . "<br>\nServer replied: $lines";
plain_error_message($msg, $color);
}
- if ($verbose == "") return $status;
+ if (! $verbose) return $status;