From: defacer Date: Wed, 26 Jan 2005 22:22:55 +0000 (+0000) Subject: Correcting a mistake: hide the block if there are no results for that quiz. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=00a4237f2446e6a8f9b68ca0cf510ee0630f7c9c;p=moodle.git Correcting a mistake: hide the block if there are no results for that quiz. --- diff --git a/blocks/quiz_results/block_quiz_results.php b/blocks/quiz_results/block_quiz_results.php index e72fd03538..20b4be1d53 100644 --- a/blocks/quiz_results/block_quiz_results.php +++ b/blocks/quiz_results/block_quiz_results.php @@ -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;