diff --git a/rating/lib.php b/rating/lib.php index a9ec6c7c1f1..cad11760105 100644 --- a/rating/lib.php +++ b/rating/lib.php @@ -546,6 +546,9 @@ class rating_manager { case RATING_AGGREGATE_SUM: $aggregatestr = 'SUM'; break; + default: + $aggregatestr = 'AVG'; // Default to this to avoid real breakage - MDL-22270 + debugging('Incorrect call to get_aggregation_method(), was called with incorrect aggregate method ' . $aggregate, DEBUG_DEVELOPER); } return $aggregatestr; } @@ -560,4 +563,4 @@ class rating_manager { } return $pluginpermissionsarray; } -}//end rating_manager class definition \ No newline at end of file +}//end rating_manager class definition