summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-09-24 15:08:29 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-09-24 15:08:29 (GMT)
commit6308592b5c51a828a1c2d5715726e60e62843103 (patch)
tree305beaf7f0b4cd46e769406f3d72674dcaa516b3
parentb278db0ec3b208f779e4f217ea241708bea8f3e0 (diff)
downloadroundcubemail-plugins-kolab-6308592b5c51a828a1c2d5715726e60e62843103.tar.gz
Fix subtype iteration after changes in f0b205cb
-rw-r--r--plugins/kolab_folders/kolab_folders.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php
index fbffa34..2acf5c5 100644
--- a/plugins/kolab_folders/kolab_folders.php
+++ b/plugins/kolab_folders/kolab_folders.php
@@ -540,8 +540,7 @@ class kolab_folders extends rcube_plugin
// get configured defaults
foreach ($this->types as $type) {
- $subtypes = $type == 'mail' ? $this->mail_types : array('default');
- foreach ($subtypes as $subtype) {
+ foreach ((array)$this->subtypes[$type] as $subtype) {
$opt_name = 'kolab_folders_' . $type . '_' . $subtype;
if ($folder = $this->rc->config->get($opt_name)) {
// convert configuration value to UTF7-IMAP charset