Fix pass-by-reference error

This commit is contained in:
Thomas Bruederli 2014-04-18 14:20:15 +02:00
parent a0806ef886
commit b2666b8357

View file

@ -227,8 +227,10 @@ class kolab_notes extends rcube_plugin
// attempt to create a default folder for this user
if (empty($this->lists)) {
$folder = kolab_storage::folder_update(array('name' => 'Notes', 'type' => 'note', 'default' => true, 'subscribed' => true));
$this->_read_lists(true);
$folder = array('name' => 'Notes', 'type' => 'note', 'default' => true, 'subscribed' => true);
if (kolab_storage::folder_update($folder)) {
$this->_read_lists(true);
}
}
return $this->lists;