MDL-22270 ratings - avoid breackage in forum/glossary/data and inform to developer. Thanks Penny.

This commit is contained in:
Eloy Lafuente 2010-05-01 17:45:20 +00:00
parent 57ca97b3a7
commit 5cc4e210d9

View File

@ -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