Prevent from rare PHP warning (T4325)
This commit is contained in:
parent
29c9ae015e
commit
8a5c092874
1 changed files with 3 additions and 1 deletions
|
@ -212,7 +212,9 @@ class kolab_addressbook extends rcube_plugin
|
|||
|
||||
// render a hierarchical list of kolab contact folders
|
||||
kolab_storage::folder_hierarchy($this->folders, $tree);
|
||||
$out .= $this->folder_tree_html($tree, $sources, $jsdata);
|
||||
if ($tree && !empty($tree->children)) {
|
||||
$out .= $this->folder_tree_html($tree, $sources, $jsdata);
|
||||
}
|
||||
|
||||
$this->rc->output->set_env('contactgroups', array_filter($jsdata, function($src){ return $src['type'] == 'group'; }));
|
||||
$this->rc->output->set_env('address_sources', array_filter($jsdata, function($src){ return $src['type'] != 'group'; }));
|
||||
|
|
Loading…
Add table
Reference in a new issue