mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Correcting a mistake: hide the block if there are no results for that quiz.
This commit is contained in:
parent
6b4dc5a31b
commit
00a4237f24
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ class block_quiz_results extends block_base {
|
||||||
if(empty($grades)) {
|
if(empty($grades)) {
|
||||||
// No grades, sorry
|
// No grades, sorry
|
||||||
// The block will hide itself in this case
|
// The block will hide itself in this case
|
||||||
|
return $this->content;
|
||||||
}
|
}
|
||||||
|
|
||||||
$groupmode = NOGROUPS;
|
$groupmode = NOGROUPS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue