• Getting a divide by zero error in testimonial-rotator.php on line 659, due to my site not using ratings. Your GitHub site is way out of date so I don’t see any point in issuing a pull request, but this can easily be solved by wrapping it in an if statement:

    if ($testimonial_count > 0)
    $global_rating_number = round($global_rating / $testimonial_count, 1);
    else
    $global_rating_number = 0;

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Another divide by 0 error’ is closed to new replies.