This commit is contained in:
Dorian Vabre 2021-05-10 15:39:39 +02:00
parent ee4e8dd99f
commit d71dc37a75

View File

@ -175,7 +175,6 @@ 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) {
@ -185,9 +184,6 @@ if (strlen($idvote)) {
//Error during update //Error during update
$votestatus = 'err'; $votestatus = 'err';
} }
} else {
$votestatus = 'err';
}
} }
} }
header("Refresh:0;url=".dol_buildpath('/public/project/viewandvote.php?votestatus='.$votestatus.'&id='.$id.'&securekey=', 1).$securekeyreceived); header("Refresh:0;url=".dol_buildpath('/public/project/viewandvote.php?votestatus='.$votestatus.'&id='.$id.'&securekey=', 1).$securekeyreceived);