summaryrefslogtreecommitdiff
path: root/plugins/kolab_config
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-11-02 12:46:00 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-11-02 12:46:00 (GMT)
commitdbe7352ce100eb6c8d6619d68fe9b6a81b029112 (patch)
tree159b217a39f4c51c9ea08ebd7cd4a81648df4da7 /plugins/kolab_config
parent50b3b8e766ca081f492521a4f502284e139c8915 (diff)
downloadroundcubemail-plugins-kolab-dbe7352ce100eb6c8d6619d68fe9b6a81b029112.tar.gz
Fix default config folder selection (list is not indexed anymore)
Diffstat (limited to 'plugins/kolab_config')
-rw-r--r--plugins/kolab_config/kolab_config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/kolab_config/kolab_config.php b/plugins/kolab_config/kolab_config.php
index 4fe8a7f..23188cf 100644
--- a/plugins/kolab_config/kolab_config.php
+++ b/plugins/kolab_config/kolab_config.php
@@ -77,7 +77,7 @@ class kolab_config extends rcube_plugin
// if no folder is set as default, choose the first one
if (!$this->default)
- $this->default = $this->folders[0];
+ $this->default = reset($this->folders);
// check if configuration folder exist
if ($this->default && $this->default->name) {