Explorar el Código

Merge pull request #2457 from yvisherve/staging

Update FixUsernames.php
daniel hace 4 años
padre
commit
576cc82ec5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Console/Commands/FixUsernames.php

+ 1 - 1
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);