From 26a2cc8b5fb6746c290c8905b6922f6759a64401 Mon Sep 17 00:00:00 2001 From: kink Date: Wed, 23 Oct 2002 15:21:21 +0000 Subject: [PATCH] If stream is FALSE also don't logout git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3953 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index a34afc25..f658073f 100755 --- a/functions/imap_general.php +++ b/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); } -- 2.25.1