Closed (fixed)
Project:
Reports
Version:
5.x-0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Jan 2007 at 23:53 UTC
Updated:
12 Apr 2007 at 23:48 UTC
Jump to comment: Most recent file
In reports.module, reports_user() is implemented as a dummy/placeholder function that always returns TRUE. However, the hook_user() API promises to return either an array, or nothing at all. See http://api.drupal.org/api/HEAD/function/hook_user.
user.module calls module_invoke($module, 'user', 'view', $account) in a few places. When $module='reports', the result is a TRUE instead of an array, and subsequent foreach()'s choke on it. As a result, the user edit page is left unusable. The user view page also shows a difficult-to-trace error, but remains usable.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | reports.patch | 471 bytes | ewhipple |
Comments
Comment #1
ewhipple commentedThe attached patch dikes out the function in question.
Comment #2
harry slaughtertook out that unnecessary hook. will be in next dev release
Comment #3
(not verified) commented