Correcting a mistake: hide the block if there are no results for that quiz.

This commit is contained in:
defacer 2005-01-26 22:22:55 +00:00
parent 6b4dc5a31b
commit 00a4237f24

View file

@ -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;