diff --git a/app/Console/Commands/FixUsernames.php b/app/Console/Commands/FixUsernames.php index 5269c8469..96dcd9cc6 100644 --- a/app/Console/Commands/FixUsernames.php +++ b/app/Console/Commands/FixUsernames.php @@ -57,7 +57,7 @@ class FixUsernames extends Command if($user->is_admin || $user->status == 'deleted') { continue; } - if(in_array($user->username, $restricted)) { + if(in_array(strtolower($user->username), array_map('strtolower', $restricted))) { $affected->push($user); } $val = str_replace(['-', '_', '.'], '', $user->username);