rating MDLSITE-1028 when no ratings have been submitted the aggregate is now output as an empty string rather than a hyphen

This commit is contained in:
Andrew Davis 2010-10-13 06:05:13 +00:00
parent c27353510d
commit 42c32efdf2

View file

@ -1431,7 +1431,7 @@ class core_renderer extends renderer_base {
$aggregatestr .= round($rating->aggregate,1); $aggregatestr .= round($rating->aggregate,1);
} }
} else { } else {
$aggregatestr = ' - '; $aggregatestr = '';
} }
$countstr = html_writer::start_tag('span', array('id'=>"ratingcount{$rating->itemid}")); $countstr = html_writer::start_tag('span', array('id'=>"ratingcount{$rating->itemid}"));