From 775ecb8f3b53c7e1a7f6a2191e887d187d130feb Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 3 Feb 2024 14:34:40 +1300 Subject: [PATCH] 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. --- inc/drivers_ldap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index 51e023d5..73110d62 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -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) ) {