From ba407830173b2ce8d15a586ee4a7a583497da687 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Wed, 22 Jan 2020 22:10:56 +0000 Subject: [PATCH] Fix graphical payment report bug --- application/controllers/Reports.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Reports.php b/application/controllers/Reports.php index 22f502e37..936eef927 100644 --- a/application/controllers/Reports.php +++ b/application/controllers/Reports.php @@ -866,7 +866,7 @@ class Reports extends Secure_Controller { $row = $this->xss_clean($row); - if($row['trans_group'] == $this->lang->line('reports_trans_payments')) + if($row['trans_group'] == $this->lang->line('reports_trans_payments') && !empty($row['trans_amount'])) { $labels[] = $row['trans_type']; $series[] = array('meta' => $row['trans_type'] . ' ' . round($row['trans_amount'] / $summary['total'] * 100, 2) . '%', 'value' => $row['trans_amount']);