- Fix performance of threads parsing

release-0.6
alecpl 15 years ago
parent 1fe60e25c9
commit c51304ddc8

@ -1295,8 +1295,10 @@ class rcube_imap
$all_ids = array(); $all_ids = array();
foreach($msg_index as $root) { foreach($msg_index as $root) {
$all_ids[] = $root; $all_ids[] = $root;
if (!empty($thread_tree[$root])) if (!empty($thread_tree[$root])) {
$all_ids = array_merge($all_ids, array_keys_recursive($thread_tree[$root])); foreach (array_keys_recursive($thread_tree[$root]) as $val)
$all_ids[] = $val;
}
} }
return $all_ids; return $all_ids;

Loading…
Cancel
Save