quiz editing: MDL-18871 logic was backwards for deciding whether to show the 'This quiz is not graded, so you cannot set overall feedback that differs by grade' warning introduced in MDL-18583.

This commit is contained in:
tjhunt
2009-04-16 03:12:20 +00:00
parent 342f26f5a7
commit d1a83777f9
+2 -1
View File
@@ -225,7 +225,8 @@ class mod_quiz_mod_form extends moodleform_mod {
if (empty($this->_cm)) {
$needwarning = $CFG->quiz_maximumgrade == 0;
} else {
$needwarning = get_field('quiz', 'grade', 'id', $this->_instance);
$quizgrade = get_field('quiz', 'grade', 'id', $this->_instance);
$needwarning = $quizgrade == 0;
}
if ($needwarning) {
$mform->addElement('static', 'nogradewarning', '', get_string('nogradewarning', 'quiz'));