mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 12:17:05 -08:00
Added a trim
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
33ded3f18a
commit
d9817ec696
|
@ -46,10 +46,10 @@ class MergeUsersByUsername extends Command
|
|||
|
||||
foreach ($users as $user) {
|
||||
$parts = explode('@', $user->username);
|
||||
$this->info('Checking against username '.$parts[0].'.');
|
||||
$this->info('Checking against username '.trim($parts[0]).'.');
|
||||
|
||||
|
||||
$bad_users = User::where('username', '=', $parts[0])
|
||||
$bad_users = User::where('username', '=', trim($parts[0]))
|
||||
->whereNull('deleted_at')
|
||||
->with('assets', 'manager', 'userlog', 'licenses', 'consumables', 'accessories', 'managedLocations')
|
||||
->get();
|
||||
|
|
Loading…
Reference in a new issue