From 8ae7f0d1cfb03b3b074ee3144043827001983815 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 31 Jul 2007 11:12:09 +0000 Subject: [PATCH] Quelch PHP notice. Spotted by James Pooton. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12568 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index b9df3669..911b06f3 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -335,6 +335,7 @@ function get_thread_sort($imap_stream, $search='ALL') { } elseif ($response == 'BAD') { sqm_trigger_imap_error('SQM_IMAP_NO_THREAD',$query, $response, $message); } + $sThreadResponse = ''; if (isset($sRead[0])) { for ($i=0,$iCnt=count($sRead);$i<$iCnt;++$i) { if (preg_match("/^\* THREAD (.+)$/", $sRead[$i], $aMatch)) { @@ -342,8 +343,6 @@ function get_thread_sort($imap_stream, $search='ALL') { break; } } - } else { - $sThreadResponse = ""; } unset($sRead); -- 2.25.1