From a4a4abe45d9dd1ee04e8d7dded5fc0ead35ca27a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 3 Aug 2018 12:27:56 +0000 Subject: [PATCH] Fix PHP warning when other users namespace is unset --- plugins/kolab_delegation/kolab_delegation_engine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kolab_delegation/kolab_delegation_engine.php b/plugins/kolab_delegation/kolab_delegation_engine.php index bacd35bf..8fc0a43a 100644 --- a/plugins/kolab_delegation/kolab_delegation_engine.php +++ b/plugins/kolab_delegation/kolab_delegation_engine.php @@ -596,7 +596,7 @@ class kolab_delegation_engine if (!empty($delegators)) { $storage = $this->rc->get_storage(); - $other_ns = $storage->get_namespace('other'); + $other_ns = $storage->get_namespace('other') ?: array(); $folders = $storage->list_folders(); } @@ -796,7 +796,7 @@ class kolab_delegation_engine } $storage = $this->rc->get_storage(); - $other_ns = $storage->get_namespace('other'); + $other_ns = $storage->get_namespace('other') ?: array(); $delim = $storage->get_hierarchy_delimiter(); if ($mode == 'calendars') {