Fix subtype iteration after changes in f0b205cb

This commit is contained in:
Thomas Bruederli 2014-09-24 17:08:29 +02:00
parent b278db0ec3
commit 6308592b5c

View file

@ -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