diff options
author | Thomas B. <thomas@roundcube.net> | 2014-09-23 10:01:06 +0200 |
---|---|---|
committer | Thomas B. <thomas@roundcube.net> | 2014-09-23 10:01:06 +0200 |
commit | 368707964a61541611a28a8e43a37e54b134adc3 (patch) | |
tree | 380734489f8a4b50350e31b1ca7c3d27be924963 | |
parent | dd6f784ec4314781862f9ea4085ef48ad2a0bc07 (diff) | |
parent | 0d273c9a9760155adcf64b1bece48855e20e0b0d (diff) |
Merge pull request #221 from bnogas/master
Fix get_metadata() function response, NIL response was introducing an shift
-rw-r--r-- | program/lib/Roundcube/rcube_imap_generic.php | 4 |
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]); } |