Skip to content

Commit

Permalink
fixed var type
Browse files Browse the repository at this point in the history
  • Loading branch information
andr11b committed Feb 11, 2024
1 parent 554ab1a commit 08f5fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/model/extension/total/reward.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function confirm($order_info, $order_total) {
$this->load->model('account/customer');

if ($this->model_account_customer->getRewardTotal($order_info['customer_id']) >= $points) {
$this->db->query("INSERT INTO " . DB_PREFIX . "customer_reward SET customer_id = '" . (int)$order_info['customer_id'] . "', order_id = '" . (int)$order_info['order_id'] . "', description = '" . $this->db->escape(sprintf($this->language->get('text_order_id'), (int)$order_info['order_id'])) . "', points = '" . (float)-$points . "', date_added = NOW()");
$this->db->query("INSERT INTO " . DB_PREFIX . "customer_reward SET customer_id = '" . (int)$order_info['customer_id'] . "', order_id = '" . (int)$order_info['order_id'] . "', description = '" . $this->db->escape(sprintf($this->language->get('text_order_id'), (int)$order_info['order_id'])) . "', points = '" . (int)$points . "', date_added = NOW()");
} else {
return $this->config->get('config_fraud_status_id');
}
Expand Down

0 comments on commit 08f5fcc

Please sign in to comment.