From 6b6c2e0605175300c0b4597f7e62348bb8bbf3b2 Mon Sep 17 00:00:00 2001 From: stekkel Date: Sat, 28 Jun 2003 21:44:28 +0000 Subject: [PATCH 1/1] fixed warning git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5146 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index 1eeb38e3..61cefde0 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -69,6 +69,7 @@ function sqimap_run_command ($imap_stream, $query, $handle_errors, &$response, /* retrieve the response and the message */ $response = $response[$tag]; $message = $message[$tag]; + if (!empty($read[$tag])) { return $read[$tag][0]; } else { @@ -433,7 +434,7 @@ function sqimap_read_data_list ($imap_stream, $tag, $handle_errors, break; case 'NO': /* ignore this error from M$ exchange, it is not fatal (aka bug) */ - if (strstr($message, 'command resulted in') === false) { + if (strstr($message[$tag], 'command resulted in') === false) { set_up_language($squirrelmail_language); require_once(SM_PATH . 'functions/display_messages.php'); $string = "\n" . -- 2.25.1