If you create a user flag and try to use "User is flagged" as a condition in a rule an error is thrown:
Notice: Trying to get property of non-object in flag_rules_condition_flagged() (line 399 of /Users/creynder/Dropbox/Work/Research/Drupal/drupal-7.x/sites/all/modules/flag/flag.rules.inc).
And the rule action is not executed.
The error is thrown in the
After a little debugging I found out the the 3rd parameter (
$account) does not receive a user object, but an array containing 2 keys:
user:select. See att. for dsm dump.
The 2nd parameter
$entity however does receive the correct user object.
This rule condition does work as it should with node flags.