From cf92958f3c225287eb0d1187f3e8c436ddd0f55f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 28 Oct 2003 19:27:52 +0000 Subject: - 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. --- modules/user.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/user.module') diff --git a/modules/user.module b/modules/user.module index 2e0702e0c..5c36461e4 100644 --- a/modules/user.module +++ b/modules/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); } } -- cgit v1.2.3