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