Browse Source

If stream is FALSE also don't logout

Thijs Kinkhorst 23 năm trước cách đây
mục cha
commit
2b3080ed24
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -259,7 +259,7 @@ function sqimap_login ($username, $password, $imap_server_address, $imap_port, $
 function sqimap_logout ($imap_stream) {
     /* Logout is not valid until the server returns 'BYE'
      * If we don't have an imap_ stream we're already logged out */
-    if(isset($imap_stream))
+    if(isset($imap_stream) && $imap_stream)
         sqimap_run_command($imap_stream, 'LOGOUT', false, $response, $message);
 }