diff options
author | alecpl <alec@alec.pl> | 2010-07-28 08:51:35 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-07-28 08:51:35 +0000 |
commit | c51304ddc85b5c96c954eddea77404cfc9bff249 (patch) | |
tree | 5b035f51118c6aa84e86a031ddf29f285b72209d /program | |
parent | 1fe60e25c91266b44cee5cc5d858367df7929f90 (diff) |
- Fix performance of threads parsing
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_imap.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 6f3b40206..d6a549d10 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -1295,8 +1295,10 @@ class rcube_imap $all_ids = array(); foreach($msg_index as $root) { $all_ids[] = $root; - if (!empty($thread_tree[$root])) - $all_ids = array_merge($all_ids, array_keys_recursive($thread_tree[$root])); + if (!empty($thread_tree[$root])) { + foreach (array_keys_recursive($thread_tree[$root]) as $val) + $all_ids[] = $val; + } } return $all_ids; |