Check all cache entries for folder type annotation
This commit is contained in:
parent
dc335c4d26
commit
4c39157ca1
1 changed files with 4 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue