summaryrefslogtreecommitdiffstats
path: root/web/html/addvote.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/addvote.php')
-rw-r--r--web/html/addvote.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/addvote.php b/web/html/addvote.php
index 03725182..d1529412 100644
--- a/web/html/addvote.php
+++ b/web/html/addvote.php
@@ -24,7 +24,7 @@ if (has_credential(CRED_TU_ADD_VOTE)) {
$error = "";
if (!empty($_POST['user'])) {
- if (!valid_user($_POST['user'])) {
+ if (!uid_from_username($_POST['user'])) {
$error.= __("Username does not exist.");
} else {