MDL-54620 ratings: display '0' when aggregate = 0
This commit is contained in:
committed by
David Monllao
parent
33892edf18
commit
393890e168
+1
-1
@@ -224,7 +224,7 @@ class rating implements renderable {
|
||||
|
||||
// Only display aggregate if aggregation method isn't COUNT.
|
||||
$aggregatestr = '';
|
||||
if ($aggregate && $method != RATING_AGGREGATE_COUNT) {
|
||||
if (is_numeric($aggregate) && $method != RATING_AGGREGATE_COUNT) {
|
||||
if ($method != RATING_AGGREGATE_SUM && !$this->settings->scale->isnumeric) {
|
||||
|
||||
// Round aggregate as we're using it as an index.
|
||||
|
||||
Reference in New Issue
Block a user