Skip to content

Commit

Permalink
[TASK] Add int cast for sys_language_uid
Browse files Browse the repository at this point in the history
Related #4220
  • Loading branch information
ayacoo committed Nov 30, 2024
1 parent ec97b6f commit 8c2bcef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/System/UserFunctions/FlexFormUserFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected function getTranslation(string $label): ?string
*/
protected function getConnection(array $pageRecord): SolrConnection
{
return GeneralUtility::makeInstance(ConnectionManager::class)->getConnectionByPageId($pageRecord['pid'], $pageRecord['sys_language_uid']);
return GeneralUtility::makeInstance(ConnectionManager::class)->getConnectionByPageId($pageRecord['pid'], (int) $pageRecord['sys_language_uid']);
}

/**
Expand Down

0 comments on commit 8c2bcef

Please sign in to comment.