From 6308592b5c51a828a1c2d5715726e60e62843103 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 24 Sep 2014 17:08:29 +0200 Subject: [PATCH] Fix subtype iteration after changes in f0b205cb --- plugins/kolab_folders/kolab_folders.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php index fbffa345..2acf5c5f 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