fix
This commit is contained in:
parent
ee4e8dd99f
commit
d71dc37a75
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user