Skip to content

Commit

Permalink
Merge branch 'MDL-55161-m' of https://github.com/micaherne/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Jul 18, 2016
2 parents 90f3675 + b4beaed commit d66e54b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/assign/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -7978,6 +7978,10 @@ public function is_gradebook_feedback_enabled() {
// 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;
}
Expand Down

0 comments on commit d66e54b

Please sign in to comment.