Don't show company_name if it's empty (non null) (#1929)

This commit is contained in:
jekkos
2018-04-06 13:35:58 +02:00
parent a597fa86eb
commit 0820a0d7ff

View File

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