Commit 4d70f796 authored by drumm's avatar drumm

#58524 by chx. Fix another array/object mixup.

parent 6389e530
......@@ -24,7 +24,7 @@ function user_module_invoke($type, &$array, &$user, $category = NULL) {
function user_external_load($authname) {
$result = db_query("SELECT uid FROM {authmap} WHERE authname = '%s'", $authname);
if ($user = db_fetch_object($result)) {
if ($user = db_fetch_array($result)) {
return user_load($user);
}
else {
......
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