Skip to content

Commit

Permalink
[2.3] Fix round_chart_totals to deal with arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed May 5, 2015
1 parent 5a92126 commit d1d5a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/reports/class-wc-report-sales-by-date.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class="export_csv"
*/
private function round_chart_totals( $amount ) {
if ( is_array( $amount ) ) {
return array_map( array( $this, 'round_chart_totals' ), $amount );
return array( $amount[0], wc_format_decimal( $amount[1], wc_get_price_decimals() ) );
} else {
return wc_format_decimal( $amount, wc_get_price_decimals() );
}
Expand Down

0 comments on commit d1d5a48

Please sign in to comment.