Posted by crunchywelch on October 23, 2006 at 5:09am
Jump to:
| 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.
| Attachment | Size |
|---|---|
| karma.patch.txt | 1.45 KB |
Comments
#1
No longer applies.
#2