IMAP server error intercepted before PHP error.
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 12 Dec 2001 08:19:28 +0000 (08:19 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 12 Dec 2001 08:19:28 +0000 (08:19 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1849 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 4909543..bc6b4f8 100755 (executable)
@@ -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