From 354eb44177c7b120b18059d72bb6ca54af0e6baf Mon Sep 17 00:00:00 2001 From: fidian Date: Mon, 23 Apr 2001 13:43:44 +0000 Subject: [PATCH] * Warning removal * Made errorCheck work as desired git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1294 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index b033490e..267f1e9e 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -404,7 +404,7 @@ 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'); @@ -423,7 +423,7 @@ } - function errorCheck($line, $smtpConnection) { + function errorCheck($line, $smtpConnection, $verbose = false) { global $color; include '../functions/page_header.php'; @@ -522,7 +522,7 @@ $msg = $message . "
\nServer replied: $lines"; plain_error_message($msg, $color); } - if ($verbose == "") return $status; + if (! $verbose) return $status; return $err_num; } -- 2.25.1