diff --git a/modules/user.module b/modules/user.module index 1e7536a8afa..0e81f09f889 100644 --- a/modules/user.module +++ b/modules/user.module @@ -473,7 +473,7 @@ function user_set_authmaps($account, $authmaps) { if ($value) { $result = db_query("SELECT COUNT(*) from authmap WHERE uid = '%d' && module = '%s'", $account->uid, $module["1"]); if (db_result($result) == 0) { - $result = db_query("INSERT INTO authmap (authname, uid, module) VALUES ('%s', '%s', '%s')", $value, $account->uid, $module[1]); + $result = db_query("INSERT INTO authmap (authname, uid, module) VALUES ('%s', '%d', '%s')", $value, $account->uid, $module[1]); } else { $result = db_query("UPDATE authmap SET authname = '%s' WHERE uid = '%d' AND module = '%s'", $value, $account->uid, $module["1"]); diff --git a/modules/user/user.module b/modules/user/user.module index 1e7536a8afa..0e81f09f889 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -473,7 +473,7 @@ function user_set_authmaps($account, $authmaps) { if ($value) { $result = db_query("SELECT COUNT(*) from authmap WHERE uid = '%d' && module = '%s'", $account->uid, $module["1"]); if (db_result($result) == 0) { - $result = db_query("INSERT INTO authmap (authname, uid, module) VALUES ('%s', '%s', '%s')", $value, $account->uid, $module[1]); + $result = db_query("INSERT INTO authmap (authname, uid, module) VALUES ('%s', '%d', '%s')", $value, $account->uid, $module[1]); } else { $result = db_query("UPDATE authmap SET authname = '%s' WHERE uid = '%d' AND module = '%s'", $value, $account->uid, $module["1"]);