Explorar el Código

Fixed changing upper chars to lower

Mariusz Muszyński hace 10 años
padre
commit
44cd25e0de
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      SE/se-lib/Route/FixUsersLongLogin.php

+ 2 - 1
SE/se-lib/Route/FixUsersLongLogin.php

@@ -43,11 +43,12 @@ class Route_FixUsersLongLogin extends RouteBase {
 					$newLogin = explode('.', $user->ADM_ACCOUNT, 2);
 					$newLogin = substr($newLogin[0], 0, 1) . ".{$newLogin[1]}";
 					if (strlen($newLogin) > 20) {
-						$newLogin = strtolower(substr($newLogin, 0, 20));
+						$newLogin = substr($newLogin, 0, 20);
 					}
 				} else {
 					$newLogin = substr($user->ADM_ACCOUNT, 0, 20);
 				}
+                $newLogin = strtolower($newLogin);
 			?>
 			<tr>
 				<td><?php echo $i; ?></td>