]> git.mjollnir.org Git - moodle.git/commitdiff
Correcting a mistake: hide the block if there are no results for that quiz.
authordefacer <defacer>
Wed, 26 Jan 2005 22:22:55 +0000 (22:22 +0000)
committerdefacer <defacer>
Wed, 26 Jan 2005 22:22:55 +0000 (22:22 +0000)
blocks/quiz_results/block_quiz_results.php

index e72fd0353868dba7362cecc7e61c60a07add08d5..20b4be1d53b216411bd87e9588ea3f5621cfb1ea 100644 (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;