mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Fix for LDAP where location ou is not null but blank
This commit is contained in:
parent
dea42db18b
commit
1d5fb52bfc
|
@ -70,7 +70,7 @@ class LdapSync extends Command
|
|||
$results = Ldap::findLdapUsers();
|
||||
|
||||
// Retrieve locations with a mapped OU, and sort them from the shallowest to deepest OU (see #3993)
|
||||
$ldap_ou_locations = Location::whereNotNull('ldap_ou')->get()->toArray();
|
||||
$ldap_ou_locations = Location::where('ldap_ou', '!=', '')->get()->toArray();
|
||||
$ldap_ou_lengths = array();
|
||||
|
||||
foreach ($ldap_ou_locations as $location) {
|
||||
|
|
Loading…
Reference in a new issue