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
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.

AttachmentSize
karma.patch.txt1.45 KB

#1

drumm - November 20, 2006 - 21:27
Status:needs review» needs work

No longer applies.

#2

mcarbone - July 7, 2007 - 02:23
Status:needs work» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.