Closed (fixed)
Project:
Fivestar
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2007 at 22:55 UTC
Updated:
11 May 2007 at 12:24 UTC
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