Browse files

Fixed a small bug where a missing grade would error out the 'My Grade…

…s' page.
  • Loading branch information...
1 parent 47e96f2 commit 42461eab728c979d874ca1463e4f18331389025f @rnhurt committed Apr 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/grade_helper.rb
View
2 app/helpers/grade_helper.rb
@@ -95,7 +95,7 @@ def my_grades_detail_table(course_term)
<td>
}
if assignment_evaluation
- body += assignment_evaluation.points_earned
+ body += assignment_evaluation.points_earned unless assignment_evaluation.points_earned.blank?
else
body += '-'
end

0 comments on commit 42461ea

Please sign in to comment.