Permalink
Browse files

Merge branch 'MDL-26576' of git://github.com/timhunt/moodle

  • Loading branch information...
2 parents 589028b + 92c4354 commit 70e6628ea3ca68881e6674b0b8623e335bb95db0 @skodak skodak committed Feb 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/locallib.php
View
2 mod/quiz/locallib.php
@@ -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 70e6628

Please sign in to comment.