function tr_rating_format_number($id = NULL, $display = NULL) {
$return = number_format(get_post_meta($id, 'ratings_average', true), 1);
$return = get_post_meta($id, 'ratings_average', true) == '' ? '0.0' : $return;
if( $display == TRUE ) { echo $return; }else{ return $return; }
}
Warning: number_format () expects parameter 1 to be double, string given in /home/moovseri/public_html/wp-content/themes/toroplay/inc/template-functions.php on line 434
Please help!