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:
Loui Chang 2009-10-26 17:28:07 -04:00
parent d5b87ec138
commit 847475fe54

View file

@ -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'];