summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-28 19:27:52 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-28 19:27:52 +0000
commitcf92958f3c225287eb0d1187f3e8c436ddd0f55f (patch)
treed9e20c6bfabd0783f6f6d72442a4c66b83b058f1 /modules/user/user.module
parentfa37f47d0b21dff0261d76bc8607606bac1f7558 (diff)
downloadbrdo-cf92958f3c225287eb0d1187f3e8c436ddd0f55f.tar.gz
brdo-cf92958f3c225287eb0d1187f3e8c436ddd0f55f.tar.bz2
- Bugfix: fixed usernames being shown in the "Who is online" block after
you logged out. Patch by Jeremy. - Bugfix: fixed the authmap table in the MSSQL scheme. Patch by Moshe. - Bugfix: properly themes some error messages in the user module. Patch by Moshe.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 2e0702e0c..5c36461e4 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -549,6 +549,7 @@ function user_get_authmaps($authname = NULL) {
}
function user_set_authmaps($account, $authmaps) {
+
foreach ($authmaps as $key => $value) {
$module = explode("_", $key, 2);
if ($value) {
@@ -1535,10 +1536,11 @@ function user_admin_edit($edit = array()) {
if ($edit["status"] == 0) {
db_query("DELETE FROM {users} WHERE uid = %d", $account->uid);
db_query("DELETE FROM {authmap} WHERE uid = %d", $account->uid);
- $output .= t("The account has been deleted.");
+ $output .= status(t("the account has been deleted."));
}
else {
- $output .= t("Failed to delete account: the account has to be blocked first.");
+ $error = t("Failed to delete account: the account has to be blocked first.");
+ $output .= theme("theme_error", $error);
}
}