* Warning removal
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 23 Apr 2001 13:43:44 +0000 (13:43 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 23 Apr 2001 13:43:44 +0000 (13:43 +0000)
* 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

index b033490ee210868615155363a8a97cc7eb0a7b98..267f1e9efe75fa7441f94bf0512d4d277ee8937e 100644 (file)
 
       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');
    }
 
 
-   function errorCheck($line, $smtpConnection) {
+   function errorCheck($line, $smtpConnection, $verbose = false) {
       global $color;
       include '../functions/page_header.php';
       
                 $msg  = $message . "<br>\nServer replied: $lines";
                 plain_error_message($msg, $color);
       }
-      if ($verbose == "") return $status;
+      if (! $verbose) return $status;
       return $err_num;
    }