From: jerome Date: Mon, 5 Oct 2009 03:09:55 +0000 (+0000) Subject: quizz MDL-20421 remove php notice when Enable Safe Exam Browser integration is not... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=05d5801ace487a4ac186db6ea092b9ad98b47d0c;p=moodle.git quizz MDL-20421 remove php notice when Enable Safe Exam Browser integration is not activated, merged from 1.9 --- 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);