Browse Source

IMAP server error intercepted before PHP error.

philippe_mingo 23 years ago
parent
commit
48e8dba69f
1 changed files with 3 additions and 0 deletions
  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,
                                  $error_number, $error_string, 15);
+      if( !$imap_stream ) {
+          return FALSE;
+      }
       $server_info = fgets ($imap_stream, 1024);
         
       // Decrypt the password