php 7.4+ compatibility fix (#454)

This commit is contained in:
Mina 2020-12-29 06:00:38 +02:00 committed by GitHub
parent 48d1dd5712
commit 93384c2375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!';
}