}
}
- 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') {
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);
}
}
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');
. "</TD>\n"
. " </TR>\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';
* 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. */
/* if using server-sorting,
* send sort back to 6
*/
- if ($allow_server_sort == TRUE) {
+ if ($allow_server_sort == 'true') {
$sort = 6;
}
echo "</TR>\n";