From e44fc2eb529cf7e7c834a96ab584684f7e5c6658 Mon Sep 17 00:00:00 2001 From: jangliss Date: Sun, 6 Nov 2005 03:06:05 +0000 Subject: [PATCH] Undefined variable in view_header. Need to see if we can find the cause as to why there appears to be no headers in rare cases. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10261 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 1 + src/view_header.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 520c09f2..f5570563 100644 --- a/ChangeLog +++ b/ChangeLog @@ -470,6 +470,7 @@ Version 1.5.1 -- CVS plugins/bug_report/README file. - E_NOTICE and unlink error message if user hits delete multiple times before compose page has reloaded. + - Undefined variable in rare case in view_header.php Version 1.5.0 - 2 February 2004 diff --git a/src/view_header.php b/src/view_header.php index 5a0ddf25..837edfdf 100644 --- a/src/view_header.php +++ b/src/view_header.php @@ -26,6 +26,8 @@ require_once(SM_PATH . 'functions/url_parser.php'); function parse_viewheader($imapConnection,$id, $passed_ent_id) { + $header_output = array(); + if (!$passed_ent_id) { $read=sqimap_run_command ($imapConnection, "FETCH $id BODY[HEADER]", true, $a, $b, TRUE); @@ -129,4 +131,4 @@ $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox, false, false, t $header = parse_viewheader($imapConnection,$passed_id, $passed_ent_id); view_header($header, $mailbox, $color); -?> \ No newline at end of file +?> -- 2.25.1