MDL-22270 ratings - avoid breackage in forum/glossary/data and inform to developer. Thanks Penny.
This commit is contained in:
+4
-1
@@ -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
|
||||
}//end rating_manager class definition
|
||||
|
||||
Reference in New Issue
Block a user