Function "sess_user_load" :

$user = db_fetch_object(db_query("SELECT u.* FROM {user} u WHERE u.uid = %d", $session->uid));

Should be :

$user = db_fetch_object(db_query("SELECT u.* FROM {users} u WHERE u.uid = %d", $session->uid));

Comments

jeremy’s picture

Nice find, thanks! (BTW: when you file bugs, don't put them into the "fixed" status before code is committed, or the bug fix may actually get lost!)

Committed in 5.x, 6.x, and HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.