From 540c4435bc131198b8b354836323a0b46d264947 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 20 Dec 2002 15:29:53 +0000 Subject: [PATCH] check for 0 messages in case of threadview git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4291 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index d0706aae..914af9ed 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -561,7 +561,7 @@ function displayMessageArray($imapConnection, $num_msgs, $start_msg, $urlMailbox = urlencode($mailbox); /* get indent level for subject display */ - if ($thread_sort_messages == 1 ) { + if ($thread_sort_messages == 1 && $num_msgs) { $indent_array = get_parent_level($imapConnection); } @@ -585,7 +585,7 @@ function displayMessageArray($imapConnection, $num_msgs, $start_msg, /* messages display */ - if ($num_msgs == 0) { + if (!$num_msgs) { /* if there's no messages in this folder */ echo html_tag( 'tr', html_tag( 'td', -- 2.25.1