Closed (fixed)
Project:
Fivestar
Version:
5.x-1.13
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Oct 2008 at 15:14 UTC
Updated:
10 Apr 2009 at 18:13 UTC
Hi,
i've found a little bug in theme_fivestar_summary function; when user is logged all works fine, but anonymous user doesent have "'No votes yet" string below the average stars if there aren't any vote. I think that is caused by:
if ($votes === 0) {
$output = '<span class="empty">'. t('No votes yet') .'</span>';
}
I've just replaced "===" with "==" and now it works like a charm :)
Comments
Comment #1
quicksketchThe triple === is intentional, as if $votes === NULL then this indicates that no text should be displayed at all. So the problem is that somewhere Fivestar is passing in the incorrect $votes value into the function. Could you describe the settings that you've chosen and how this behavior can be reproduced?
Comment #2
quicksketchClosing after lack of response.