From 5cc84ca1374285ae7e0278f3cce9bb38a58b9c15 Mon Sep 17 00:00:00 2001 From: Jan Felix Wiebe Date: Tue, 25 Jul 2017 08:15:15 +0200 Subject: [PATCH] Use correct array when deleting users with location (#3769) --- app/Console/Commands/LdapSync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php index 162a65d5a8..48b7697356 100755 --- a/app/Console/Commands/LdapSync.php +++ b/app/Console/Commands/LdapSync.php @@ -109,7 +109,7 @@ class LdapSync extends Command // Delete located users from the general group. foreach ($results as $key => $generic_entry) { - if (in_array($generic_entry[$ldap_result_username][0], $location_users)) { + if (in_array($generic_entry[$ldap_result_username][0], $usernames)) { unset($results[$key]); } }