summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_imap_search.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-04-07 16:24:37 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-04-07 16:24:37 +0200
commite8cb51669a325a3d5b60fcc37b99d494809bf837 (patch)
treebe0a7cb9f9de8c158d1a53502598055e9202b5cd /program/lib/Roundcube/rcube_imap_search.php
parente7a3ae9a765cef4b2a851ed49a718629e6e8d186 (diff)
More fixes for multi-folder search (#1485234)
Diffstat (limited to 'program/lib/Roundcube/rcube_imap_search.php')
-rw-r--r--program/lib/Roundcube/rcube_imap_search.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_imap_search.php b/program/lib/Roundcube/rcube_imap_search.php
index c88198140..926a75d76 100644
--- a/program/lib/Roundcube/rcube_imap_search.php
+++ b/program/lib/Roundcube/rcube_imap_search.php
@@ -65,6 +65,8 @@ class rcube_imap_search
{
$pthreads = defined('PTHREADS_INHERIT_ALL');
+ $results = new rcube_result_multifolder($folders);
+
// start a search job for every folder to search in
foreach ($folders as $folder) {
$job = new rcube_imap_search_job($folder, $str, $charset, $sort_field, $threading);
@@ -82,7 +84,6 @@ class rcube_imap_search
$this->shutdown();
// gather results
- $results = new rcube_result_multifolder;
foreach ($this->jobs as $job) {
$results->add($job->get_result());
}