quizz MDL-20421 remove php notice when Enable Safe Exam Browser integration is not activated

This commit is contained in:
jerome
2009-10-05 03:05:38 +00:00
parent e2f5bc4700
commit ab1b3440f2
+1 -1
View File
@@ -197,7 +197,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);