From 05d5801ace487a4ac186db6ea092b9ad98b47d0c Mon Sep 17 00:00:00 2001 From: jerome Date: Mon, 5 Oct 2009 03:09:55 +0000 Subject: [PATCH] quizz MDL-20421 remove php notice when Enable Safe Exam Browser integration is not activated, merged from 1.9 --- mod/quiz/mod_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/mod_form.php b/mod/quiz/mod_form.php index 30e6a903ef..03c6e7b375 100644 --- a/mod/quiz/mod_form.php +++ b/mod/quiz/mod_form.php @@ -264,7 +264,7 @@ class mod_quiz_mod_form extends moodleform_mod { $options = array( 0 => get_string('none', 'quiz'), 1 => get_string('popupwithjavascriptsupport', 'quiz')); - if ($CFG->enablesafebrowserintegration) { + if (!empty($CFG->enablesafebrowserintegration)) { $options[2] = get_string('requiresafeexambrowser', 'quiz'); } $mform->addElement('select', 'popup', get_string('browsersecurity', 'quiz'), $options); -- 2.39.5