]> git.mjollnir.org Git - moodle.git/commitdiff
quizz MDL-20421 remove php notice when Enable Safe Exam Browser integration is not...
authorjerome <jerome>
Mon, 5 Oct 2009 03:09:55 +0000 (03:09 +0000)
committerjerome <jerome>
Mon, 5 Oct 2009 03:09:55 +0000 (03:09 +0000)
mod/quiz/mod_form.php

index 30e6a903efb01072e4d178c4f7ba387aac5dd06d..03c6e7b375891b80b6d43a7d4b608bd5abc6e685 100644 (file)
@@ -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);