Fix PHP warning when other users namespace is unset

This commit is contained in:
Aleksander Machniak 2018-08-03 12:27:56 +00:00
parent 87abd0d2d4
commit a4a4abe45d

View file

@ -596,7 +596,7 @@ class kolab_delegation_engine
if (!empty($delegators)) { if (!empty($delegators)) {
$storage = $this->rc->get_storage(); $storage = $this->rc->get_storage();
$other_ns = $storage->get_namespace('other'); $other_ns = $storage->get_namespace('other') ?: array();
$folders = $storage->list_folders(); $folders = $storage->list_folders();
} }
@ -796,7 +796,7 @@ class kolab_delegation_engine
} }
$storage = $this->rc->get_storage(); $storage = $this->rc->get_storage();
$other_ns = $storage->get_namespace('other'); $other_ns = $storage->get_namespace('other') ?: array();
$delim = $storage->get_hierarchy_delimiter(); $delim = $storage->get_hierarchy_delimiter();
if ($mode == 'calendars') { if ($mode == 'calendars') {