MDL-34793 mod_assign Fix rendering error that causes student view to break in some...
authorEric Merrill <merrill@oakland.edu>
Wed, 8 Aug 2012 18:27:19 +0000 (14:27 -0400)
committerEric Merrill <merrill@oakland.edu>
Tue, 14 Aug 2012 04:41:50 +0000 (00:41 -0400)
commit8c0cf5be669400c090853fb9984c6f65d8206ffb
tree74a9044450bd041287daa135fb1dbe5174c0a574
parent470d47f512b3a1e0e16021611c2bb3e3b5ab47e0
MDL-34793 mod_assign Fix rendering error that causes student view to break in some cases.

When feedback is switched on for a assignment, and the teacher enters a grade through the gradebook, the student
view would become broken, throwing a coding error. Added check that $status->grade is not empty before passing
to assign_feedback_XXX::is_empty(), as that function expects an object.
mod/assign/renderer.php