Kaynağa Gözat

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.

jangliss 20 yıl önce
ebeveyn
işleme
6ea7777451
2 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 1 0
      ChangeLog
  2. 3 1
      src/view_header.php

+ 1 - 0
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

+ 3 - 1
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);
 
-?>
+?>