mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-10 10:11:46 +00:00
Ensure that users_nothing_done is created as an array
This is likely only going to generate an error on the first time you sync from LDAP, but still, let's not spit an unncessary error out.
This commit is contained in:
parent
ed7f308b87
commit
775ecb8f3b
@ -696,6 +696,8 @@ function sync_LDAP(){
|
||||
$users_to_deactivate = array_diff($db_users,$ldap_users);
|
||||
// users present in ldap and in the db
|
||||
$users_to_update = array_intersect($db_users,$ldap_users);
|
||||
// users not modified
|
||||
$users_nothing_done = array();
|
||||
|
||||
// creation of all users;
|
||||
if ( sizeof($users_to_create) ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user