Hi.
I have a composer with this code:
$player_1 = get_field('player_1', get_the_ID());
if ($player_1['percentage_points_won_opponent_first_serve'] == 'N/A') {
$player_1['percentage_points_won_opponent_first_serve'] = round(($player_1['points_won_opponent_first_serve'] / $player_1['points_total_opponent_first_serve']) * 100);
}
On some posts, even if $player_1_stats[‘percentage_points_won_opponent_second_serve’] is not equal to ‘N/A’, the composer does the round operation, which triggers an error.
Where would you check to understand the issue, or what could I do to avoid an error, please?