summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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));