In fivestar_form() $current_vote is currently referred as scalar and class. For anonymous users it is '$current_vote = 0;', but for logged in users it is 'votingapi_get_vote(....)', which returns object. Later in the code $current_vote is used (once) as $current_vote->value.

I'll attach a patch that changes '$current_vote = 0;' to '$current_vote->value = 0;' - simple, almost cosmetic change.

CommentFileSizeAuthor
fivestar-01-current_vote_is_a_class.patch589 bytesmr700

Comments

quicksketch’s picture

Status: Reviewed & tested by the community » Fixed

Thanks mr700. Great patches :)

killes@www.drop.org’s picture

Status: Fixed » Closed (fixed)