Merge branch 'MDL-56682_master' of git://github.com/markn86/moodle
This commit is contained in:
@@ -4793,7 +4793,7 @@ class assign {
|
||||
|
||||
$cangrade = has_capability('mod/assign:grade', $this->get_context());
|
||||
// If there is a visible grade, show the summary.
|
||||
if ((!is_null($gradebookgrade->grade) || !$emptyplugins)
|
||||
if (!is_null($gradebookgrade) && (!is_null($gradebookgrade->grade) || !$emptyplugins)
|
||||
&& ($cangrade || !$gradebookgrade->hidden)) {
|
||||
|
||||
$gradefordisplay = null;
|
||||
|
||||
Reference in New Issue
Block a user