In the user_external_load() function in user.module, on the line
if ($user = db_fetch_object($result)) {
shouldn't this be: ?
if ($user = db_fetch_array($result)) {
every XX_user() module hook seems to expect an array as does the user_load() function which it calls.
Perhaps the issue hasn't been brought up because perhaps it's hardly used, but when trying to implement an automated logon scenario it causes problems with a couple of modules.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | external_load.patch | 423 bytes | chx |
Comments
Comment #1
pfaocleStill applies to 4.7. Haven't looked into this any further, tho.
Comment #2
pfaocleuser_load does require an array as a parameter, so cagg could be onto something.
Not in a position to test this one, ATM.
Comment #3
magico commentedWe have
function user_load($array = array())And then at
function user_external_load($authname)the followingIt seems wrong.
Comment #4
chx commentedThis is PHP version dependent but yes. The patch is trivial.
Comment #5
drummCommitted to HEAD.
Comment #6
(not verified) commented