Skip to content

Commit

Permalink
Merge branch 'MDL-54620_master' of git://github.com/dmonllao/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed May 18, 2016
2 parents d7256f3 + 393890e commit 134b648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rating/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function get_aggregate_string() {

// 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.
Expand Down

0 comments on commit 134b648

Please sign in to comment.