Closed (won't fix)
Project:
Flag content
Version:
5.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2007 at 09:13 UTC
Updated:
3 Feb 2013 at 17:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
jkamin commentedHi - I just put in a support request before realizing you had addressed this issue already. thanks for that! Problem is, I don't understand the first thing about PHP so nothing is intuitive. I tried adding the code in that you suggested - but not on line 127, rather on line 1506 or thereabouts. This is what I did on the user.module page:
function user_view($uid = 0) {
global $user;
$items=array();
$account = user_load(array('uid' => $uid));
if ($account === FALSE || ($account->access == 0 && !user_access('administer users'))) {
return drupal_not_found();
}
but I'm still getting the error on the user profile pages. If you can give me more detailed instructions on where to put $items=array() I'd be enormously grateful. thanks!
Comment #2
baja_tz commented@jkamin
line 127 in flag_content.module not user.module
Comment #3
davemybes commentedThanks for that fix, works like a charm. Here's a patch :)
Comment #4
rconstantine commentedI think that the above solution suppresses the error from going to the screen but not the log. At least I think. So I changed the function to this:
Comment #5
marcoBauli commentedsolution #4 above fixes the warning both on user page and watchdog, thx rconstantine ;)
Comment #6
rconstantine commentedThen this should be added to the module's code.
Comment #7
pomliane commentedThis version of Flag content is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.