Check all cache entries for folder type annotation

This commit is contained in:
Thomas Bruederli 2014-09-09 09:48:56 +02:00
parent dc335c4d26
commit 4c39157ca1

View file

@ -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));