From: kink Date: Tue, 25 May 2004 13:47:49 +0000 (+0000) Subject: Reset $msg on each iteration, otherwise a message with eg no subject X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=d74abf737c7fbbb372fe5bfa54f4341339b60ba5 Reset $msg on each iteration, otherwise a message with eg no subject will take the subject from the previous message. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7549 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 5930134d..5afd3030 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -574,6 +574,7 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $show_num=false, $i = 0; foreach ($read_list as $r) { + $msg = array(); // use unset because we do isset below $read = implode('',$r);