Merge branch 'MDL-55161-m30' of https://github.com/micaherne/moodle into MOODLE_30_STABLE

This commit is contained in:
David Monllao
2016-07-18 20:02:32 +02:00
+4
View File
@@ -7464,6 +7464,10 @@ class assign {
// Check if default gradebook feedback is visible and enabled.
$gradebookfeedbackplugin = $this->get_feedback_plugin_by_type($gradebookplugin);
if (empty($gradebookfeedbackplugin)) {
return false;
}
if ($gradebookfeedbackplugin->is_visible() && $gradebookfeedbackplugin->is_enabled()) {
return true;
}