summaryrefslogtreecommitdiff
path: root/plugins/kolab_notes/kolab_notes.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kolab_notes/kolab_notes.php')
-rw-r--r--plugins/kolab_notes/kolab_notes.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/kolab_notes/kolab_notes.php b/plugins/kolab_notes/kolab_notes.php
index 369f1c5..4def121 100644
--- a/plugins/kolab_notes/kolab_notes.php
+++ b/plugins/kolab_notes/kolab_notes.php
@@ -998,6 +998,9 @@ class kolab_notes extends rcube_plugin
private function save_links($uid, $links)
{
+ if (empty($links)) {
+ $links = array();
+ }
$config = kolab_storage_config::get_instance();
$remove = array_diff($config->get_object_links($uid), $links);
return $config->save_object_links($uid, $links, $remove);