From 86419c0b6313322da3972835c9f4727b720ece25 Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 14 Aug 2002 09:50:41 +0000 Subject: [PATCH] fix for mailbox header display. Thnx Jasper Kalkman and Cor Bosman git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3295 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 49a39152..5170d5d3 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -445,7 +445,7 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs, mail_message_listing_beginning($imapConnection, $mailbox, $sort, $msg_cnt_str, $paginator_str, $start_msg); - + printHeader($mailbox, $srt, $color, !$thread_sort_messages); displayMessageArray($imapConnection, $num_msgs, $start_msg, @@ -594,7 +594,7 @@ function displayMessageArray($imapConnection, $num_msgs, $start_msg, $t = 0; /* messages display */ - echo html_tag( 'table' ,'' , '', '', 'border="0" width="100%" cellpadding="1" cellspacing="0"' ); + if ($num_msgs == 0) { /* if there's no messages in this folder */ echo html_tag( 'tr', @@ -792,6 +792,7 @@ function mail_message_listing_end($num_msgs, $paginator_str, $msg_cnt_str, $colo function printHeader($mailbox, $sort, $color, $showsort=true) { global $index_order; + echo html_tag( 'table' ,'' , '', '', 'border="0" width="100%" cellpadding="1" cellspacing="0"' ); echo html_tag( 'tr' ,'' , 'center', $color[5] ); for ($i=1; $i <= count($index_order); $i++) { switch ($index_order[$i]) { -- 2.25.1