division by zero on karma rating overview page
crunchywelch - October 23, 2006 - 05:09
| Project: | Karma |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | crunchywelch |
| Status: | won't fix |
Jump to:
Description
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 |

#1
No longer applies.
#2