sometimes i get this error
Division by zero in /storage/httpd/drupal/iwikiphone/sites/all/modules/fivestar/fivestar.module on line 1398.

#2 fivestar-594062.patch796 bytesezra-g
#1 division_by_zero.patch539 bytesj0sh


j0sh’s picture

new539 bytes

this patch could resolve the problem

ezra-g’s picture

Priority:Critical» Normal
new796 bytes

Thanks for this patch. The indentations you're using are not compliant with the Drupal coding standards. Also, I'm not sure that we need to set the rating value.

Does the attached patch resolve the problem for you?

ezra-g’s picture

Status:Active» Needs review
j0sh’s picture

yes this solved my problem... sorry for indentation

ezra-g’s picture

Title:Division by zero again» Division by zero in fivestar.module on line 1398
Status:Needs review» Fixed

No problem -- Just wanted to point you in the right direction. Thanks for the quick review! Comitted.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.