From 08a7bd96068a726b947a3936755fcc9506f0abc9 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Fri, 21 Apr 2017 19:02:11 +0100 Subject: [PATCH] Fix review comment (#1253) --- application/controllers/Customers.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/Customers.php b/application/controllers/Customers.php index 3891d7c91..27d165010 100644 --- a/application/controllers/Customers.php +++ b/application/controllers/Customers.php @@ -121,14 +121,14 @@ class Customers extends Persons 'taxable' => $this->input->post('taxable') != NULL ); - $x = $this->input->post('sales_tax_code'); - if(!isset($x)) + $tax_code = $this->input->post('sales_tax_code'); + if(!isset($tax_code)) { $customer_data['sales_tax_code'] = ''; } else { - $customer_data['sales_tax_code'] = $this->input->post('sales_tax_code'); + $customer_data['sales_tax_code'] = $tax_code; } if($this->Customer->save_customer($person_data, $customer_data, $customer_id))