- Fix sorting of messages on servers without SORT and THREAD command

release-0.7
alecpl 13 years ago
parent e99b3f2e6e
commit f3ec778c65

@ -917,7 +917,6 @@ class rcube_imap
$msg_index = array_keys($msg_index); $msg_index = array_keys($msg_index);
list($begin, $end) = $this->_get_message_range(count($msg_index), $page); list($begin, $end) = $this->_get_message_range(count($msg_index), $page);
$msg_index = array_slice($msg_index, $begin, $end-$begin); $msg_index = array_slice($msg_index, $begin, $end-$begin);
$is_uid = true;
if ($slice) if ($slice)
$msg_index = array_slice($msg_index, ($this->sort_order == 'DESC' ? 0 : -$slice), $slice); $msg_index = array_slice($msg_index, ($this->sort_order == 'DESC' ? 0 : -$slice), $slice);

Loading…
Cancel
Save