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

quicksketch’s picture

Status: Needs review » Needs work

The 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?

quicksketch’s picture

Status: Needs work » Closed (fixed)

Closing after lack of response.