mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-31 18:46:02 +00:00
Handle there being no one in the group in the database
This commit is contained in:
parent
ef6bd9a7e9
commit
03d0e66b39
@ -651,7 +651,8 @@ function sync_LDAP_groups(){
|
||||
}
|
||||
|
||||
foreach ( $groups_to_sync_members as $group ) {
|
||||
$db_members = is_array( $db_group_members[$group] )
|
||||
$db_members = isset($db_group_members[$group])
|
||||
&& is_array($db_group_members[$group])
|
||||
? array_values( $db_group_members[$group] )
|
||||
: array();
|
||||
$ldap_members = isset ( $ldap_groups_info[$group][$member_field] )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user