mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Untranslate TU vote fields so they're properly saved in the database.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
d5b87ec138
commit
847475fe54
1 changed files with 3 additions and 3 deletions
|
@ -67,11 +67,11 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
|
|||
if ($canvote == 1) {
|
||||
if (isset($_POST['doVote'])) {
|
||||
if (isset($_POST['voteYes'])) {
|
||||
$myvote = __("Yes");
|
||||
$myvote = "Yes";
|
||||
} else if (isset($_POST['voteNo'])) {
|
||||
$myvote = __("No");
|
||||
$myvote = "No";
|
||||
} else if (isset($_POST['voteAbstain'])) {
|
||||
$myvote = __("Abstain");
|
||||
$myvote = "Abstain";
|
||||
}
|
||||
|
||||
$qvote = "UPDATE TU_VoteInfo SET " . $myvote . " = " . ($row[$myvote] + 1) . " WHERE ID = " . $row['ID'];
|
||||
|
|
Loading…
Add table
Reference in a new issue