Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
karma.patch.txt | 1.45 KB | crunchywelch |
Comments
Comment #1
drummNo longer applies.
Comment #2
mcarbone CreditAttribution: mcarbone commented