summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_result_thread.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-01-24 19:05:18 +0100
committerAleksander Machniak <alec@alec.pl>2014-01-24 19:05:18 +0100
commit3b1d410b4ede2fd54be23bb47da5950535df9b04 (patch)
treece3a73fbaa3bdf48bf2b317f8711802f4d23bc63 /program/lib/Roundcube/rcube_result_thread.php
parent5140c310645b1728f59e27d8f5fe37aeb2928d6f (diff)
Fix confusing intersect/filter methods naming/behaviour.
Removed rcube_result_index::intersect() method. Changed rcube_result_index::filter() to filter in the same way as rcube_result_thread::filter(), which means it actually does array_intersect(). Added tests scripts for rcube_result_index class.
Diffstat (limited to 'program/lib/Roundcube/rcube_result_thread.php')
-rw-r--r--program/lib/Roundcube/rcube_result_thread.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_result_thread.php b/program/lib/Roundcube/rcube_result_thread.php
index c7f21db53..ceaaf59a6 100644
--- a/program/lib/Roundcube/rcube_result_thread.php
+++ b/program/lib/Roundcube/rcube_result_thread.php
@@ -453,7 +453,7 @@ class rcube_result_thread
// when sorting search result it's good to make the index smaller
if ($index->count() != $this->count_messages()) {
- $index->intersect($this->get());
+ $index->filter($this->get());
}
$result = array_fill_keys($index->get(), null);