Merge branch 'MDL-28397-21' of https://github.com/totara/moodle into MOODLE_21_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2011-08-23 17:31:12 +02:00
@@ -269,7 +269,7 @@ class completion_criteria_activity extends completion_criteria {
$details['requirement'][] = get_string('viewingactivity', 'completion', $this->module);
}
if ($module->completiongradeitemnumber) {
if (!is_null($module->completiongradeitemnumber)) {
$details['requirement'][] = get_string('achievinggrade', 'completion');
}
}