From 334bc9792789732fd5657df5abb233ad0c2da512 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 03 Sep 2014 05:24:15 -0400 Subject: [PATCH] Fix merging folder annotations for folders with numeric names (only digits) --- program/lib/Roundcube/rcube_imap.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index a66d206..44a79c8 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -3952,7 +3952,9 @@ // @TODO: Honor MAXSIZE and DEPTH options foreach ($queries as $attrib => $entry) { if ($result = $this->conn->getAnnotation($folder, $entry, $attrib)) { - $res = array_merge_recursive($res, $result); + foreach ($result as $folder => $data) { + $res[$folder] = array_merge((array) $res[$folder], $data); + } } } } -- Gitblit v1.9.1