diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 2484b448939..ce3ea5daa4b 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -3382,9 +3382,9 @@ class assign { } $cangrade = has_capability('mod/assign:grade', $this->get_context()); - // If there is feedback or a visible grade, show the summary. - if ((!empty($gradebookgrade->grade) && ($cangrade || !$gradebookgrade->hidden)) || - !$emptyplugins) { + // If there is a visible grade, show the summary. + if ((!empty($gradebookgrade->grade) || !$emptyplugins) + && ($cangrade || !$gradebookgrade->hidden)) { $gradefordisplay = null; $gradeddate = null;