فهرست منبع

IMAP server error intercepted before PHP error.

philippe_mingo 23 سال پیش
والد
کامیت
48e8dba69f
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      functions/imap_general.php

+ 3 - 0
functions/imap_general.php

@@ -162,6 +162,9 @@ function sqimap_session_id() {
 
 
       $imap_stream = fsockopen ( $imap_server_address, $imap_port,
       $imap_stream = fsockopen ( $imap_server_address, $imap_port,
                                  $error_number, $error_string, 15);
                                  $error_number, $error_string, 15);
+      if( !$imap_stream ) {
+          return FALSE;
+      }
       $server_info = fgets ($imap_stream, 1024);
       $server_info = fgets ($imap_stream, 1024);
         
         
       // Decrypt the password
       // Decrypt the password