mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-26 01:09:22 +02:00
php 7.4+ compatibility fix (#454)
This commit is contained in:
parent
48d1dd5712
commit
93384c2375
@ -173,7 +173,7 @@ if (!empty($_POST['selected_character'])) {
|
||||
$errors[] = 'Your name may only contain a-z, A-Z and spaces.';
|
||||
} else if (strlen($newname) < $config['minL'] || strlen($newname) > $config['maxL']) {
|
||||
$errors[] = 'Your character name must be between ' . $config['minL'] . ' - ' . $config['maxL'] . ' characters long.';
|
||||
} else if (!ctype_upper($newname{0})) {
|
||||
} else if (!ctype_upper($newname[0])) {
|
||||
$errors[] = 'The first letter of a name has to be a capital letter!';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user