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];