From 76c619ea16ffd6dc874e76550d77cf1ca590a399 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 16 Oct 2007 20:29:20 +0000 Subject: [PATCH] MDL-11791 - Custom corners broken on the quiz view page because I missed a global declaration, and PHP empty was hiding the problem. Merged from MOODLE_19_STABLE. --- mod/quiz/view.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/quiz/view.php b/mod/quiz/view.php index 0c80da7525..fda89f4893 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -341,8 +341,6 @@ } } - - // Print a button to start/continue an attempt, if appropriate. if (!$quiz->questions) { print_heading(get_string("noquestions", "quiz")); @@ -452,6 +450,7 @@ // Utility functions ================================================================= function finish_page($course) { + global $THEME; if (!empty($THEME->customcorners)) print_custom_corners_end(); echo ''; print_footer($course); -- 2.39.5