소스 검색

* 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;
    }