Fix merging folder annotations for folders with numeric names (only digits)

pull/216/head
Aleksander Machniak 10 years ago
parent 57d7bc27c0
commit 334bc97927

@ -3952,7 +3952,9 @@ class rcube_imap extends rcube_storage
// @TODO: Honor MAXSIZE and DEPTH options // @TODO: Honor MAXSIZE and DEPTH options
foreach ($queries as $attrib => $entry) { foreach ($queries as $attrib => $entry) {
if ($result = $this->conn->getAnnotation($folder, $entry, $attrib)) { 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);
}
} }
} }
} }

Loading…
Cancel
Save