mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Handle there being no group members in the DB
This commit is contained in:
parent
1db3663302
commit
3846d31664
@ -598,7 +598,9 @@ function sync_LDAP_groups(){
|
||||
if ( sizeof ( $groups_to_update ) ){
|
||||
$c->messages[] = sprintf(i18n('- updating groups : %s'),join(', ',$groups_to_update));
|
||||
foreach ( $groups_to_update as $group ){
|
||||
$db_members = array_values ( $db_group_members[$group] );
|
||||
$db_members = is_array( $db_group_members[$group] )
|
||||
? array_values( $db_group_members[$group] )
|
||||
: array();
|
||||
$ldap_members = array_values ( $ldap_groups_info[$group][$member_field] );
|
||||
|
||||
$mapping_field = $c->authenticate_hook['config']['mapping_field'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user