mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-56682 mod_assign: ensure the variable is not null
This commit is contained in:
parent
3eabedbb92
commit
4a8c6b4259
1 changed files with 1 additions and 1 deletions
|
@ -4793,7 +4793,7 @@ class assign {
|
||||||
|
|
||||||
$cangrade = has_capability('mod/assign:grade', $this->get_context());
|
$cangrade = has_capability('mod/assign:grade', $this->get_context());
|
||||||
// If there is a visible grade, show the summary.
|
// 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)) {
|
&& ($cangrade || !$gradebookgrade->hidden)) {
|
||||||
|
|
||||||
$gradefordisplay = null;
|
$gradefordisplay = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue