Download & Extend

division by zero on karma rating overview page

Project:Karma
Version:master
Component:Code
Category:bug report
Priority:normal
Assigned:crunchywelch
Status:closed (won't fix)

Issue Summary

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.

AttachmentSize
karma.patch.txt1.45 KB

Comments

#1

Status:needs review» needs work

No longer applies.

#2

Status:needs work» closed (won't fix)