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.
| Comment | File | Size | Author |
|---|---|---|---|
| fivestar-01-current_vote_is_a_class.patch | 589 bytes | mr700 |
Comments
Comment #1
quicksketchThanks mr700. Great patches :)
Comment #2
killes@www.drop.org commented