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

This commit is contained in:
jekkos committed 2018-04-06 13:36:45 +02:00
1 parent a597fa86eb
commit 0820a0d7ff
1 file changed
+1 -1
+1 -1
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;
}