summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube
diff options
context:
space:
mode:
authorBartlomiej Nogas <bart.nogas@gmail.com>2014-09-22 23:17:12 +0200
committerBartlomiej Nogas <bart.nogas@gmail.com>2014-09-22 23:17:12 +0200
commit0d273c9a9760155adcf64b1bece48855e20e0b0d (patch)
tree380734489f8a4b50350e31b1ca7c3d27be924963 /program/lib/Roundcube
parentdd6f784ec4314781862f9ea4085ef48ad2a0bc07 (diff)
Fix get_metadata() function response, NIL response was introducing an shift
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r--program/lib/Roundcube/rcube_imap_generic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php
index 68d9c6a2c..03e1918e9 100644
--- a/program/lib/Roundcube/rcube_imap_generic.php
+++ b/program/lib/Roundcube/rcube_imap_generic.php
@@ -3199,9 +3199,9 @@ class rcube_imap_generic
for ($i=0; $i<$size; $i++) {
if (isset($mbox) && is_array($data[$i])) {
$size_sub = count($data[$i]);
- for ($x=0; $x<$size_sub; $x++) {
+ for ($x=0; $x<$size_sub; $x+=2) {
if ($data[$i][$x+1] !== null)
- $result[$mbox][$data[$i][$x]] = $data[$i][++$x];
+ $result[$mbox][$data[$i][$x]] = $data[$i][$x+1];
}
unset($data[$i]);
}