if (strlen($_POST['flag']) (#273)

required when a player does not choose shows an error flag photos flag
This commit is contained in:
Webus 2017-01-30 19:42:13 +01:00 committed by Stefan A. Brannfjell
parent ff7b51bff2
commit 3aecf2e1c9

View File

@ -92,6 +92,9 @@ if (empty($_POST) === false) {
if (validate_ip(getIP()) === false && $config['validate_IP'] === true) {
$errors[] = 'Failed to recognize your IP address. (Not a valid IPv4 address).';
}
if (strlen($_POST['flag']) < 1) {
$errors[] = 'Please choose country.';
}
}
}