From 21e6c3f65ff4b0daeac75d6d66dcdd33fb98d646 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 18 Nov 2012 10:21:51 +0100 Subject: 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 --- web/html/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/html') diff --git a/web/html/account.php b/web/html/account.php index c367914..f15a10a 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 { -- cgit v1.2.3-70-g09d2