Details
Description
When reviewing a quiz that has no entry in the quiz_feedback table I get the following errors (below) because it is trying to use the id and feedbacktextformat retrieved feedback row.
In the quiz_feedback_for_grade() function it is already setting feedbacktext = '' if it's empty, maybe in there it could check if there was an id retrieved, and if not just bomb out of the function?
! ) Notice: Undefined property: stdClass::$id in /fs1/www_root/jecb5/ou-moodle2/mod/quiz/locallib.php on line 471
Call Stack
- Time Memory Function Location
1 0.0000 626216 {main}( ) ../review.php:0
2 1.0203 17787944 quiz->get_overall_feedback( ) ../review.php:203
3 1.0203 17787944 quiz_feedback_for_grade( ) ../attemptlib.php:293
( ! ) Notice: Undefined property: stdClass::$feedbacktextformat in /fs1/www_root/jecb5/ou-moodle2/mod/quiz/locallib.php on line 472
Call Stack
# Time Memory Function Location
1 0.0000 626216 {main}( ) ../review.php:0
2 1.0203 17787944 quiz->get_overall_feedback( ) ../review.php:203
3 1.0203 17787944 quiz_feedback_for_grade( ) ../attemptlib.php:293