summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-11-18 10:21:51 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2013-02-10 12:11:36 +0100
commit21e6c3f65ff4b0daeac75d6d66dcdd33fb98d646 (patch)
treecc66d40640a13116a0344dd5a38303cc49282555 /web/html
parentecf2caf7fb137d0cd37746cd5db7c14b5599a2e3 (diff)
downloadaur-21e6c3f65ff4b0daeac75d6d66dcdd33fb98d646.tar.gz
aur-21e6c3f65ff4b0daeac75d6d66dcdd33fb98d646.tar.xz
Fix default selection on the account edit page
We used a mixture of account type IDs and account type descriptions on the account edit page. This resulted in the account type field always defaulting to "Normal user" after an invalid form had been submitted. Consistently use account type IDs to avoid this. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/account.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/account.php b/web/html/account.php
index c367914f..f15a10a1 100644
--- a/web/html/account.php
+++ b/web/html/account.php
@@ -50,7 +50,7 @@ if (isset($_COOKIE["AURSID"])) {
/* Verify user has permission to edit the account */
if (can_edit_account($atype, $row, uid_from_sid($_COOKIE["AURSID"]))) {
display_account_form($atype, "UpdateAccount", $row["Username"],
- $row["AccountType"], $row["Suspended"], $row["Email"],
+ $row["AccountTypeID"], $row["Suspended"], $row["Email"],
"", "", $row["RealName"], $row["LangPreference"],
$row["IRCNick"], $row["PGPKey"], $row["ID"]);
} else {