Fix performance of list_folders() - use cached folders list(s)

This commit is contained in:
Aleksander Machniak 2012-08-10 14:09:35 +02:00
parent 4c02e93f18
commit 37ce52a319

View file

@ -557,10 +557,10 @@ class kolab_storage
// Get folders list // Get folders list
if ($subscribed) { if ($subscribed) {
$folders = self::$imap->list_folders_subscribed_direct($root, $mbox); $folders = self::$imap->list_folders_subscribed($root, $mbox);
} }
else { else {
$folders = self::$imap->list_folders_direct($root, $mbox); $folders = self::$imap->list_folders($root, $mbox);
} }
// In case of an error, return empty list (?) // In case of an error, return empty list (?)