From 3baefe860d53b9ddfaea3b6eba16df21b2cea9b1 Mon Sep 17 00:00:00 2001 From: jmunro Date: Fri, 12 Apr 2002 20:52:04 +0000 Subject: [PATCH] fixes some problems with sort settings not responding correctly git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2716 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index b727d456..b3d97bc2 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -255,7 +255,7 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs, } } - if ($allow_server_sort == TRUE && $thread_sort_messages != 1) { + if ($allow_server_sort == 'true' && $thread_sort_messages != 1) { $server_sort_order = $sort; $id = sqimap_get_sort_order($imapConnection, $server_sort_order); if ($id == 'no') { @@ -290,7 +290,7 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs, if ($sort < 6 ) { $id = range(1, $num_msgs); } - elseif ($thread_sort_messages != 1 && $allow_server_sort != TRUE && $sort == 6) { + elseif ($thread_sort_messages != 1 && $allow_server_sort != 'true' && $sort == 6) { /* if it's not sorted */ if ($start_msg + ($show_num - 1) < $num_msgs){ $end_msg = $start_msg + ($show_num - 1); @@ -454,7 +454,7 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs, } } session_register('msort'); - } elseif ($thread_sort_messages == 1 || $allow_server_sort == TRUE) { + } elseif ($thread_sort_messages == 1 || $allow_server_sort == 'true') { $msort = $msgs; session_unregister('msgs'); session_register('msort'); @@ -670,8 +670,8 @@ function mail_message_listing_beginning ($imapConnection, $moveURL, . "\n" . " \n"; -/* draws thread sorting links */ - if ($allow_thread_sort == TRUE) { + /* draws thread sorting links */ + if ($allow_thread_sort == 'true') { if ($thread_sort_messages == 1 ) { $set_thread = 2; $thread_name = 'Unthread View'; @@ -703,7 +703,7 @@ function mail_message_listing_beginning ($imapConnection, $moveURL, * instead. but here we reset sort for a bit * since its easy */ - if ($allow_server_sort == TRUE) { + if ($allow_server_sort == 'true') { $sort = $server_sort_order; } /* Print the headers. */ @@ -746,7 +746,7 @@ function mail_message_listing_beginning ($imapConnection, $moveURL, /* if using server-sorting, * send sort back to 6 */ - if ($allow_server_sort == TRUE) { + if ($allow_server_sort == 'true') { $sort = 6; } echo "\n"; -- 2.25.1