diff options
author | alecpl <alec@alec.pl> | 2012-04-23 09:22:15 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-04-23 09:22:15 +0000 |
commit | 91cb9dfe789871f9f0e9080752e21b7d4aaef94d (patch) | |
tree | 479e1984570ed79bb1565e09e23c9caa2bce34b9 /program/include/rcube_result_index.php | |
parent | e327ca25efcb9ace2f43a38ac81d44856221f0a0 (diff) |
- Fix parsing ESEARCH (ALL) result and enabling ESEARCH for ordinary searches
Diffstat (limited to 'program/include/rcube_result_index.php')
-rw-r--r-- | program/include/rcube_result_index.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_result_index.php b/program/include/rcube_result_index.php index 2572aea77..cd900677e 100644 --- a/program/include/rcube_result_index.php +++ b/program/include/rcube_result_index.php @@ -100,7 +100,7 @@ class rcube_result_index // @TODO: Implement compression using compressMessageSet() in __sleep() and __wakeup() ? // @TODO: work with compressed result?! if (isset($this->params['ALL'])) { - $data[$idx] = implode(self::SEPARATOR_ELEMENT, + $data_item = implode(self::SEPARATOR_ELEMENT, rcube_imap_generic::uncompressMessageSet($this->params['ALL'])); } } @@ -111,6 +111,8 @@ class rcube_result_index unset($data[$i]); } + $data = array_filter($data); + if (empty($data)) { return; } |