Use correct array when deleting users with location (#3769)

This commit is contained in:
Jan Felix Wiebe 2017-07-25 08:15:15 +02:00 committed by snipe
parent 7510f9f128
commit 5cc84ca137

View file

@ -109,7 +109,7 @@ class LdapSync extends Command
// Delete located users from the general group. // Delete located users from the general group.
foreach ($results as $key => $generic_entry) { 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]); unset($results[$key]);
} }
} }