Correcting a mistake: hide the block if there are no results for that quiz.
This commit is contained in:
@@ -56,6 +56,7 @@ class block_quiz_results extends block_base {
|
||||
if(empty($grades)) {
|
||||
// No grades, sorry
|
||||
// The block will hide itself in this case
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
$groupmode = NOGROUPS;
|
||||
|
||||
Reference in New Issue
Block a user