From f02c086031dacb018c674d343c43f95e99b32b84 Mon Sep 17 00:00:00 2001 From: SharkyKZ Date: Mon, 9 Mar 2020 08:31:42 +0200 Subject: [PATCH] Fix loading module by ID on PostgreSQL --- libraries/src/Helper/ModuleHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/src/Helper/ModuleHelper.php b/libraries/src/Helper/ModuleHelper.php index 1e81c2522c61e..2b39b2df2708c 100644 --- a/libraries/src/Helper/ModuleHelper.php +++ b/libraries/src/Helper/ModuleHelper.php @@ -665,7 +665,7 @@ public static function &getModuleById($id) for ($i = 0; $i < $total; $i++) { // Match the id of the module - if ($modules[$i]->id === $id) + if ((string) $modules[$i]->id === $id) { // Found it return $modules[$i];