Add a check to see if account_number is valid key (#4257)

This commit is contained in:
jekkos
2025-05-31 00:30:09 +02:00
parent e1fedab9b7
commit 2d8fb735c3

View File

@@ -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'];
}