From b2666b8357bba75382f0d0691c6cc5b6cd455c65 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 18 Apr 2014 14:20:15 +0200 Subject: [PATCH] Fix pass-by-reference error --- plugins/kolab_notes/kolab_notes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/kolab_notes/kolab_notes.php b/plugins/kolab_notes/kolab_notes.php index 6442a710..114e92ca 100644 --- a/plugins/kolab_notes/kolab_notes.php +++ b/plugins/kolab_notes/kolab_notes.php @@ -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;