From 93384c23750d3b183ac4d544af46f5a14f1b547f Mon Sep 17 00:00:00 2001 From: Mina Date: Tue, 29 Dec 2020 06:00:38 +0200 Subject: [PATCH] php 7.4+ compatibility fix (#454) --- myaccount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myaccount.php b/myaccount.php index e1d59f0..f2cdcbd 100644 --- a/myaccount.php +++ b/myaccount.php @@ -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!'; }