Function flag_get_content_flags has a parameter $flag_name on which only information about this flag should be returned.

But instead the function checks for $flag so it always returns information about all flags on this content.

return isset($flag) ...
should be
return isset($flag_name) ...

Comments

quicksketch’s picture

Status: Active » Fixed

Thanks, committed attached patch!

quicksketch’s picture

Oops, forgot to make the patch. Here's the commit patch.

http://cvs.drupal.org/viewvc/drupal/contributions/modules/flag/flag.modu...

Status: Fixed » Closed (fixed)

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