mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
add a conditional around location_id to fix bug
This commit is contained in:
parent
495df737fc
commit
2f12a9cfe2
|
@ -83,7 +83,7 @@ class LdapSync extends Command
|
|||
$summary = [];
|
||||
|
||||
try {
|
||||
if ( $this->option('location_id') != '') {
|
||||
if ( !empty($this->option('location_id')) != '') {
|
||||
$location_ou= Location::where('id', '=', $this->option('location_id'))->value('ldap_ou');
|
||||
$search_base = $location_ou;
|
||||
Log::debug('Importing users from specified location OU: \"'.$search_base.'\".');
|
||||
|
|
Loading…
Reference in a new issue