Преглед изворни кода

check for 0 messages in case of threadview

stekkel пре 22 година
родитељ
комит
bc999beb97
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      functions/mailbox_display.php

+ 2 - 2
functions/mailbox_display.php

@@ -561,7 +561,7 @@ function displayMessageArray($imapConnection, $num_msgs, $start_msg,
     $urlMailbox = urlencode($mailbox);
     $urlMailbox = urlencode($mailbox);
 
 
     /* get indent level for subject display */
     /* get indent level for subject display */
-    if ($thread_sort_messages == 1 ) {
+    if ($thread_sort_messages == 1 && $num_msgs) {
         $indent_array = get_parent_level($imapConnection);
         $indent_array = get_parent_level($imapConnection);
     }
     }
 
 
@@ -585,7 +585,7 @@ function displayMessageArray($imapConnection, $num_msgs, $start_msg,
 
 
     /* messages display */
     /* messages display */
 
 
-    if ($num_msgs == 0) {
+    if (!$num_msgs) {
     /* if there's no messages in this folder */
     /* if there's no messages in this folder */
         echo html_tag( 'tr',
         echo html_tag( 'tr',
                 html_tag( 'td',
                 html_tag( 'td',