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

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

Comments

StatusFileSize
new539 bytes

this patch could resolve the problem

Priority:Critical» Normal
StatusFileSize
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?

Status:Active» Needs review

yes this solved my problem... sorry for indentation

Title:Division by zero againDivision 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.