mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-23 12:44:12 -08:00
Use correct array when deleting users with location (#3769)
This commit is contained in:
parent
7510f9f128
commit
5cc84ca137
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue