summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/html/tu.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/html/tu.php b/web/html/tu.php
index 5e85e78..e2f7712 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -42,10 +42,13 @@ if ($atype == "Trusted User" || $atype == "Developer") {
} else if ($row['User'] == username_from_sid($_COOKIE["AURSID"])) {
$canvote = 0;
$errorvote = __("You cannot vote in an proposal about you.");
- } else if (tu_voted($row['ID'], uid_from_sid($_COOKIE["AURSID"]))) {
+ }
+ if (tu_voted($row['ID'], uid_from_sid($_COOKIE["AURSID"]))) {
$canvote = 0;
$hasvoted = 1;
- $errorvote = __("You've already voted for this proposal.");
+ if ($isrunning) {
+ $errorvote = __("You've already voted for this proposal.");
+ }
}
if ($canvote == 1) {