Browse Source

Whoops wrong file
In case of server sort and non sorted headers, display newest first

stekkel 22 năm trước cách đây
mục cha
commit
001b91374f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      functions/imap_messages.php

+ 1 - 0
functions/imap_messages.php

@@ -159,6 +159,7 @@ function sqimap_get_sort_order ($imap_stream, $sort, $mbxresponse) {
             $qty = $mbxresponse['EXISTS'];
             $server_sort_array = range(1, $qty);
         }
+        $server_sort_array = array_reverse($server_sort_array);
         sqsession_register($server_sort_array, 'server_sort_array');
         return $server_sort_array;
     }