summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-07-28 08:51:35 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-07-28 08:51:35 +0000
commitbde701199a7921fbd8c9c95d6bd43e57d44491d7 (patch)
treed068290df6feb4a062c27c453647ea8ae9da875c /roundcubemail/program
parentd8a6f4a99e0a6f12e1a992f94b7c4d4ed1bdce16 (diff)
- Fix performance of threads parsing
git-svn-id: https://svn.roundcube.net/trunk@3832 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/include/rcube_imap.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php
index 6f3b40206..d6a549d10 100644
--- a/roundcubemail/program/include/rcube_imap.php
+++ b/roundcubemail/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;