From 0820a0d7ffd87a038352e7957d6497732186ad72 Mon Sep 17 00:00:00 2001 From: jekkos Date: Fri, 6 Apr 2018 13:35:58 +0200 Subject: [PATCH] Don't show company_name if it's empty (non null) (#1929) --- application/controllers/Sales.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php index 87431cb7c..3344587bd 100644 --- a/application/controllers/Sales.php +++ b/application/controllers/Sales.php @@ -838,7 +838,7 @@ class Sales extends Secure_Controller { $customer_info = $this->Customer->get_info($customer_id); $data['customer_id'] = $customer_id; - if(isset($customer_info->company_name)) + if(!empty($customer_info->company_name)) { $data['customer'] = $customer_info->company_name; }