Fix default config folder selection (list is not indexed anymore)

This commit is contained in:
Thomas Bruederli 2012-11-02 13:46:00 +01:00
parent 50b3b8e766
commit dbe7352ce1

View file

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