Permalink
Browse files

MDL-26576 avoid notices one quizzes with no overall feedback.

  • Loading branch information...
1 parent eabbb12 commit 92c4354ff9d76bcad165e4c6294bf32b1d29271b @timhunt timhunt committed Feb 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/locallib.php
View
@@ -463,7 +463,7 @@ function quiz_feedback_for_grade($grade, $quiz, $context, $cm=null) {
$feedback = $DB->get_record_select('quiz_feedback', "quizid = ? AND mingrade <= ? AND $grade < maxgrade", array($quiz->id, $grade));
if (empty($feedback->feedbacktext)) {
- $feedback->feedbacktext = '';
+ return '';
}
// Clean the text, ready for display.

0 comments on commit 92c4354

Please sign in to comment.