summaryrefslogtreecommitdiff
path: root/program/include/rcube_result_index.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-04-23 09:33:35 +0000
committeralecpl <alec@alec.pl>2012-04-23 09:33:35 +0000
commita57f9e2c64a8495ccb89a8b79eba6052483a0ede (patch)
tree3bd115981d50b96163fc8c1c10247652489011d8 /program/include/rcube_result_index.php
parent2cadfbbd76581c7f4bbbbcdb63b812e56acc6839 (diff)
- Applied fixes from trunk up to r6118
Diffstat (limited to 'program/include/rcube_result_index.php')
-rw-r--r--program/include/rcube_result_index.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/program/include/rcube_result_index.php b/program/include/rcube_result_index.php
index 1c7a5e067..cd900677e 100644
--- a/program/include/rcube_result_index.php
+++ b/program/include/rcube_result_index.php
@@ -89,18 +89,18 @@ class rcube_result_index
$param = strtoupper($m[1]);
$value = $m[2];
- $this->params[strtoupper($m[1])] = $value;
+ $this->params[$param] = $value;
$data_item = substr($data_item, strlen($m[0]));
if (in_array($param, array('COUNT', 'MIN', 'MAX'))) {
- $this->meta[strtolower($param)] = (int) $m[2];
+ $this->meta[strtolower($param)] = (int) $value;
}
}
// @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;
}