Skip to content

Commit

Permalink
Merge pull request opencart#14076 from koriyapankaj/master
Browse files Browse the repository at this point in the history
Remove redundant typecasting in balance formatting
  • Loading branch information
danielkerr authored Aug 10, 2024
2 parents 5ffafe6 + a7c361d commit 96767f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/admin/controller/marketing/affiliate.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ protected function getList(): string {
'name' => $result['name'],
'tracking' => $result['tracking'],
'commission' => $result['commission'],
'balance' => $this->currency->format((int)$result['balance'], $this->config->get('config_currency')),
'balance' => $this->currency->format(is_numeric($result['balance']) ? (float)$result['balance'] : 0, $this->config->get('config_currency')),
'status' => $result['status'],
'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
'customer' => $this->url->link('customer/customer.form', 'user_token=' . $this->session->data['user_token'] . '&customer_id=' . $result['customer_id']),
Expand Down

0 comments on commit 96767f9

Please sign in to comment.