From a6ffb8eeb8777ece11650dc24c0ff03ee13ab4c3 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Wed, 16 Dec 2009 00:52:57 +0000 Subject: [PATCH] quiz MDL-18896 small efficiency improvement --- mod/quiz/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/quiz/index.php b/mod/quiz/index.php index 2ea177d12f..6e0f77c42d 100644 --- a/mod/quiz/index.php +++ b/mod/quiz/index.php @@ -52,6 +52,9 @@ if (quiz_has_feedback($quiz)) { $showfeedback=true; } + if($showclosingheader && $showfeedback) { + break; + } } // Configure table for displaying the list of instances. -- 2.39.5