]> git.mjollnir.org Git - moodle.git/commitdiff
quiz MDL-18896 small efficiency improvement
authorAndrew Davis <andrew@affinitysoftware.net>
Wed, 16 Dec 2009 00:52:57 +0000 (00:52 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Wed, 16 Dec 2009 00:52:57 +0000 (00:52 +0000)
mod/quiz/index.php

index 2ea177d12fb49b12857e94c29d24b78150b09148..6e0f77c42d37185a6360660a7480c378848d7e1c 100644 (file)
@@ -52,6 +52,9 @@
         if (quiz_has_feedback($quiz)) {
             $showfeedback=true;
         }
+        if($showclosingheader && $showfeedback) {
+            break;
+        }
     }
 
 // Configure table for displaying the list of instances.