Fix bug where hidden ldap addressbooks would still be visible (Bifrost#T171965)
This commit is contained in:
parent
618fbe9b35
commit
315079c8e4
1 changed files with 3 additions and 2 deletions
|
@ -204,8 +204,9 @@ class kolab_addressbook extends rcube_plugin
|
|||
$jsdata = array();
|
||||
$sources = (array)$this->rc->get_address_sources();
|
||||
|
||||
// list all non-kolab sources first
|
||||
foreach (array_filter($sources, function($source){ return empty($source['kolab']); }) as $j => $source) {
|
||||
// list all non-kolab sources first (also exclude hidden sources)
|
||||
$filter = function($source){ return empty($source['kolab']) && empty($source['hidden']); };
|
||||
foreach (array_filter($sources, $filter) as $j => $source) {
|
||||
$id = strval(strlen($source['id']) ? $source['id'] : $j);
|
||||
$out .= $this->addressbook_list_item($id, $source, $jsdata) . '</li>';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue