codice:
$rat = $num_reviews == 0 ? 0 : round (($avg_rating-1)/$num_reviews,2);