On the karma rating overview page, if a cid is passed that is not a valid comment ID a division by zero occurs on the average calculation. This would also occur if a valid comment had no ratings yet. This patch displays 404 if the comment is not found, and prevents the division by zero in the second case.

CommentFileSizeAuthor
karma.patch.txt1.45 KBcrunchywelch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm’s picture

Status: Needs review » Needs work

No longer applies.

mcarbone’s picture

Status: Needs work » Closed (won't fix)