summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-09-09 07:48:56 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-09-09 07:48:56 (GMT)
commit4c39157ca180bf5611da9418f7c6a4eb875a0435 (patch)
tree3ab1d80b3ad611782b4a18801f5ae7012f9fc466 /plugins
parentdc335c4d26713a1f6e18b263e26540d28df58aa2 (diff)
downloadroundcubemail-plugins-kolab-4c39157ca180bf5611da9418f7c6a4eb875a0435.tar.gz
Check all cache entries for folder type annotation
Diffstat (limited to 'plugins')
-rw-r--r--plugins/libkolab/lib/kolab_storage.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/libkolab/lib/kolab_storage.php b/plugins/libkolab/lib/kolab_storage.php
index 4c29a20..9bfd32d 100644
--- a/plugins/libkolab/lib/kolab_storage.php
+++ b/plugins/libkolab/lib/kolab_storage.php
@@ -1104,8 +1104,10 @@ class kolab_storage
self::setup();
// return in-memory cached result
- if (is_array(self::$typedata['*']) && array_key_exists($folder, self::$typedata['*'])) {
- return self::$typedata['*'][$folder];
+ foreach (self::$typedata as $typedata) {
+ if (array_key_exists($folder, $typedata)) {
+ return $typedata[$folder];
+ }
}
$metadata = self::$imap->get_metadata($folder, array(self::CTYPE_KEY, self::CTYPE_KEY_PRIVATE));