Only fail if the lookup when the $anon_token_id is not found.
This commit is contained in:
parent
80c0efa2d9
commit
5865715712
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ if (($_POST["verify_token"])) {
|
||||||
}
|
}
|
||||||
$anon_token_id = elec_verify_voted_token ($handle, $verify_token);
|
$anon_token_id = elec_verify_voted_token ($handle, $verify_token);
|
||||||
|
|
||||||
if ($verify_token && $anon_token_id > 0) {
|
if ($verify_token && $anon_token_id <= 0) {
|
||||||
$error .= "The vote verification token provided does not appear in the votes database. Please check that you entered it correctly.<br />\n";
|
$error .= "The vote verification token provided does not appear in the votes database. Please check that you entered it correctly.<br />\n";
|
||||||
}
|
}
|
||||||
if (!$verify_token || $error) {
|
if (!$verify_token || $error) {
|
||||||
|
|
Loading…
Reference in a new issue