A free open source IT asset/license management system
add a conditional around location_id to fix bug
Godfrey M2f12a9cfe2d5
diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.phpindex edb29614ee..e11d269ef8 100755--- a/app/Console/Commands/LdapSync.php+++ b/app/Console/Commands/LdapSync.php@@ -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.'\".');