Merge branch 'master' into dev/fullcalendar-upgrade
This commit is contained in:
commit
841815f5b1
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