I have a warning:
"Notice: Undefined offset: 0 in plus1_undo_vote() (line 202 of /sites/all/modules/plus1/plus1.module)."

It because you need use:
$score = isset($results[0]['value']) ? $results[0]['value'] : 0;

instead:
$score = $results[0]['value'] ? $results[0]['value'] : 0;

I think that I do not need to create a patch for this :)
Thanks

Comments

henrijs.seso’s picture

Patch would be good however trivial bug is, some people get and apply patches in drush and include them in features (as far as I remember). Also there are two instances of "instead" code and only second fixes a bug.

mrded’s picture

StatusFileSize
new1.07 KB
henrijs.seso’s picture

Status: Active » Reviewed & tested by the community

changing status, thanks for the patch!

rogical’s picture

Status: Reviewed & tested by the community » Closed (fixed)

thanks mrded, you got a commit.