mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-55161 assign: Check for existence of gradebook feedback plugin
This commit is contained in:
parent
5a1728df39
commit
b4beaed931
1 changed files with 4 additions and 0 deletions
|
@ -7978,6 +7978,10 @@ class assign {
|
||||||
// Check if default gradebook feedback is visible and enabled.
|
// Check if default gradebook feedback is visible and enabled.
|
||||||
$gradebookfeedbackplugin = $this->get_feedback_plugin_by_type($gradebookplugin);
|
$gradebookfeedbackplugin = $this->get_feedback_plugin_by_type($gradebookplugin);
|
||||||
|
|
||||||
|
if (empty($gradebookfeedbackplugin)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if ($gradebookfeedbackplugin->is_visible() && $gradebookfeedbackplugin->is_enabled()) {
|
if ($gradebookfeedbackplugin->is_visible() && $gradebookfeedbackplugin->is_enabled()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue