mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Forgot this..
This commit is contained in:
parent
81b293a5a6
commit
a271edec47
@ -186,13 +186,13 @@ class Validator
|
||||
$length = strlen($name);
|
||||
if($length < $minLength)
|
||||
{
|
||||
self::$lastError = 'Character name is too short. Min. length <b>3</b> characters.';
|
||||
self::$lastError = "Character name is too short. Min. length <b>$minLength</b> characters.";
|
||||
return false;
|
||||
}
|
||||
|
||||
if($length > $maxLength)
|
||||
{
|
||||
self::$lastError = 'Character name is too long. Max. length <b>25</b> characters.';
|
||||
self::$lastError = "Character name is too long. Max. length <b>$maxLength</b> characters.";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user