mirror of
https://github.com/moodle/moodle.git
synced 2025-04-08 18:03:19 +02:00
MDL-55161 assign: Check for existence of gradebook feedback plugin
This commit is contained in:
parent
5a1728df39
commit
b4beaed931
@ -7978,6 +7978,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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user