fix
This commit is contained in:
parent
ee4e8dd99f
commit
d71dc37a75
@ -175,17 +175,13 @@ if (strlen($idvote)) {
|
|||||||
$errmsg .= $conforbooth->error;
|
$errmsg .= $conforbooth->error;
|
||||||
} else {
|
} else {
|
||||||
// Process to vote
|
// Process to vote
|
||||||
if ($res) {
|
$conforbooth->num_vote++;
|
||||||
$conforbooth->num_vote++;
|
$resupdate = $conforbooth->update($user);
|
||||||
$resupdate = $conforbooth->update($user);
|
if ($resupdate) {
|
||||||
if ($resupdate) {
|
$votestatus = 'ok';
|
||||||
$votestatus = 'ok';
|
$_SESSION["savevotes"] = $hashedvote.','.(empty($_SESSION["savevotes"]) ? '' : $_SESSION["savevotes"]); // Save voter
|
||||||
$_SESSION["savevotes"] = $hashedvote.','.(empty($_SESSION["savevotes"]) ? '' : $_SESSION["savevotes"]); // Save voter
|
|
||||||
} else {
|
|
||||||
//Error during update
|
|
||||||
$votestatus = 'err';
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
|
//Error during update
|
||||||
$votestatus = 'err';
|
$votestatus = 'err';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user