diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-09-09 09:37:36 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-09-09 09:37:50 +0200 |
commit | fb3ccf2e0981c96bf7e093516999eb23d051a22b (patch) | |
tree | 38d5f11e54ed47d8268b98078270152256fd8eed /program/lib | |
parent | ae69e6a81ef22f0a534d0c74f2279909285f7d3a (diff) |
Don't override argument variable when collecting results
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/Roundcube/rcube_imap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index d1d1fbf32..a1fd87442 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -3952,8 +3952,8 @@ class rcube_imap extends rcube_storage // @TODO: Honor MAXSIZE and DEPTH options foreach ($queries as $attrib => $entry) { if ($result = $this->conn->getAnnotation($folder, $entry, $attrib)) { - foreach ($result as $folder => $data) { - $res[$folder] = array_merge((array) $res[$folder], $data); + foreach ($result as $fldr => $data) { + $res[$fldr] = array_merge((array) $res[$fldr], $data); } } } |