rating-box

Beschrijving

Deze plugin is gesloten sinds 16 juni 2016 en is niet beschikbaar om te downloaden. Reden: Onbekend.

Beoordelingen

6 januari 2017 1 reactie
At a file wp-content/plugins/rating-box/includes/site.php there is an error in 60th line. There is an if: if( is_object($row) ){ $star_value = round(intval($row->total)/intval($row->count),0); } When the intval($row->count) equals zero then the "division by zero" error appears in posts where the ratingbox is included. I have changed the code like that: if( is_object($row) && intval($row->count) != 0){ $star_value = round(intval($row->total)/intval($row->count),0); } and there is no problem now.
Lees 1 beoordeling

Bijdragers & ontwikkelaars

“Rating Box” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

Vertaal “Rating Box” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.