Commit aae42b23 authored by webchick's avatar webchick

#347250 follow-up by c960657: Fix OpenID failure introduced by user_load_multiple().

parent 25c18d5d
......@@ -110,10 +110,10 @@ function user_field_build_modes($obj_type) {
}
function user_external_load($authname) {
$result = db_query("SELECT uid FROM {authmap} WHERE authname = '%s'", $authname);
$uid = db_query("SELECT uid FROM {authmap} WHERE authname = :authname", array(':authname' => $authname))->fetchField();
if ($user = db_fetch_array($result)) {
return user_load($user);
if ($uid) {
return user_load($uid);
}
else {
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment