From 5bea235ec8962fff2c3888f2afbe540dcce77699 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 17 Jul 2023 14:17:37 +0200 Subject: [PATCH] Cast the result value to int --- application/models/Customers_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Customers_model.php b/application/models/Customers_model.php index 994034fc..b68efffc 100644 --- a/application/models/Customers_model.php +++ b/application/models/Customers_model.php @@ -399,7 +399,7 @@ class Customers_model extends EA_Model { throw new InvalidArgumentException('Could not find customer record id.'); } - return $customer['id']; + return (int)$customer['id']; } /**