mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-22270 ratings - avoid breackage in forum/glossary/data and inform to developer. Thanks Penny.
This commit is contained in:
parent
57ca97b3a7
commit
5cc4e210d9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user