Browse Source

Shouldn't let PHP generate an error in this case, if we are handling a
connection failure

jangliss 21 years ago
parent
commit
c8be9a65a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -563,7 +563,7 @@ function sqimap_create_stream($server,$port,$tls=false) {
         }
     }
 
-    $imap_stream = fsockopen($server, $port, $error_number, $error_string, 15);
+    $imap_stream = @fsockopen($server, $port, $error_number, $error_string, 15);
 
     /* Do some error correction */
     if (!$imap_stream) {