summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2015-02-04 11:24:17 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2015-02-04 11:24:17 (GMT)
commita59b96e270d533cceb0884016e199fa862fc27c1 (patch)
tree62e9beb544091e32628c0607b6d1508f0cdd2459
parent11e93ffa1f329a2cbcb9544e4962c6b58051cdba (diff)
downloadkolab-chwala-a59b96e270d533cceb0884016e199fa862fc27c1.tar.gz
Use folder state check and set type when using kolab_storage::get_folder() (#4478)
-rw-r--r--lib/drivers/kolab/kolab_file_storage.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drivers/kolab/kolab_file_storage.php b/lib/drivers/kolab/kolab_file_storage.php
index f29e74e..9edc65b 100644
--- a/lib/drivers/kolab/kolab_file_storage.php
+++ b/lib/drivers/kolab/kolab_file_storage.php
@@ -1070,9 +1070,9 @@ class kolab_file_storage implements file_storage
$separator = $storage->get_hierarchy_delimiter();
$folder_name = str_replace(file_storage::SEPARATOR, $separator, $folder_name);
$imap_name = rcube_charset::convert($folder_name, RCUBE_CHARSET, 'UTF7-IMAP');
- $folder = kolab_storage::get_folder($imap_name);
+ $folder = kolab_storage::get_folder($imap_name, 'file');
- if (!$folder) {
+ if (!$folder || !$folder->valid) {
throw new Exception("Storage error. Folder not found.", file_storage::ERROR);
}