From 0d8b8f1777347c306f1adfee8c34046247b737df Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 13 Jun 2006 18:59:41 +0000 Subject: [PATCH] Quiz module sometimes left the user staring at a blank page. Now there is an error message. Merged from MOODLE_16_STABLE. --- mod/quiz/edit.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 0923693b29..564da591bc 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -67,11 +67,15 @@ if (isset($SESSION->modform)) { $modform = $SESSION->modform; } else { - exit; + error('cmunknown'); } } else { // we might get here after editing a question in // a popup window. So close window automatically. + // + // But we certainly should not be doing this before + // print_header, since it throws browsers into quirks mode. + // Unfortunately there is no easy fix. Bug #5811 covers this. ?>