diff --git a/gocart/models/customer_model.php b/gocart/models/customer_model.php index 1dbb1d70..bf1cdc6a 100644 --- a/gocart/models/customer_model.php +++ b/gocart/models/customer_model.php @@ -82,6 +82,7 @@ function save_address($data) $this->db->update('customers_address_bank', $data); return $data['id']; } else { + unset($data['id']); $this->db->insert('customers_address_bank', $data); return $this->db->insert_id(); } @@ -376,4 +377,4 @@ function save_group($data) return $this->db->insert_id(); } } -} \ No newline at end of file +}