From 7647b5f13eacd8930817c7b8ef23914ee8b47faa Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Mon, 2 Oct 2006 11:53:56 +0000
Subject: [PATCH] - Patch #84820 by Goba: fixed some problems with the
 distributed authentication.

---
 modules/user/user.module | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/user/user.module b/modules/user/user.module
index a545c505f480..8e0323770c40 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -843,13 +843,13 @@ function user_set_authmaps($account, $authmaps) {
   foreach ($authmaps as $key => $value) {
     $module = explode('_', $key, 2);
     if ($value) {
-      db_query("UPDATE {authmap} SET authname = '%s' WHERE uid = %d AND module = '%s'", $value, $account->uid, $module['1']);
+      db_query("UPDATE {authmap} SET authname = '%s' WHERE uid = %d AND module = '%s'", $value, $account->uid, $module[1]);
       if (!db_affected_rows()) {
         db_query("INSERT INTO {authmap} (authname, uid, module) VALUES ('%s', %d, '%s')", $value, $account->uid, $module[1]);
       }
     }
     else {
-      db_query("DELETE FROM {authmap} WHERE uid = %d AND module = '%s'", $account->uid, $module['1']);
+      db_query("DELETE FROM {authmap} WHERE uid = %d AND module = '%s'", $account->uid, $module[1]);
     }
   }
 }
@@ -858,7 +858,7 @@ function user_auth_help_links() {
   $links = array();
   foreach (module_list() as $module) {
     if (module_hook($module, 'auth')) {
-      $links[] = l(module_invoke($module, 'info', 'name'), "user/help#$module");
+      $links[] = l(module_invoke($module, 'info', 'name'), 'user/help', array(), NULL, $module);
     }
   }
   return $links;
-- 
GitLab