diff --git a/libraries/src/Helper/ModuleHelper.php b/libraries/src/Helper/ModuleHelper.php index 5a55823b165d5..32a87f311a474 100644 --- a/libraries/src/Helper/ModuleHelper.php +++ b/libraries/src/Helper/ModuleHelper.php @@ -658,7 +658,7 @@ public static function &getModuleById($id) for ($i = 0; $i < $total; $i++) { // Match the id of the module - if ($modules[$i]->id === $id) + if ($modules[$i]->id === (int) $id) { // Found it return $modules[$i];