mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-05-01 03:39:21 +02:00
if (strlen($_POST['flag']) (#273)
required when a player does not choose shows an error flag photos flag
This commit is contained in:
parent
ff7b51bff2
commit
3aecf2e1c9
@ -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.';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user