From 2d8fb735c3bed7992e1e4ae5628bac497ecefd43 Mon Sep 17 00:00:00 2001 From: jekkos Date: Sat, 31 May 2025 00:30:09 +0200 Subject: [PATCH] Add a check to see if account_number is valid key (#4257) --- app/Controllers/Sales.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/Sales.php b/app/Controllers/Sales.php index 3cce20b59..3b8c1a464 100644 --- a/app/Controllers/Sales.php +++ b/app/Controllers/Sales.php @@ -658,11 +658,11 @@ class Sales extends Secure_Controller $data['company_info'] = implode("\n", [$this->config['address'], $this->config['phone']]); - if ($this->config['account_number']) { + if (isset($this->config['account_number'])) { $data['company_info'] .= "\n" . lang('Sales.account_number') . ": " . $this->config['account_number']; } - if ($this->config['tax_id'] != '') { + if (isset($this->config['tax_id'])) { $data['company_info'] .= "\n" . lang('Sales.tax_id') . ": " . $this->config['tax_id']; }