alecpl
2010-07-28 c51304ddc85b5c96c954eddea77404cfc9bff249
- Fix performance of threads parsing


1 files modified
6 ■■■■■ changed files
program/include/rcube_imap.php 6 ●●●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -1295,8 +1295,10 @@
        $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;