Fix #351 - syntax error in register.php

This commit is contained in:
Stefan A. Brannfjell
2019-03-19 11:43:09 +01:00
committed by GitHub
parent a3f2cce4aa
commit 6fee46767b

View File

@@ -42,7 +42,8 @@ if (empty($_POST) === false) {
}
} else {
if (preg_match("/^[0-9]+$/", $_POST['username']) == false) {
$errors[] = 'Your account can only contain numbers 0-9.';
$errors[] = 'Your account can only contain numbers 0-9.';
}
}
// name restriction
$resname = explode(" ", $_POST['username']);