瀏覽代碼

* Warning removal
* Made errorCheck work as desired

Tyler Akins 24 年之前
父節點
當前提交
84d8a42af6
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      functions/smtp.php

+ 3 - 3
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 . "<br>\nServer replied: $lines";
 		 plain_error_message($msg, $color);
       }
-      if ($verbose == "") return $status;
+      if (! $verbose) return $status;
       return $err_num;
    }