Skip to content

Commit e44c734

Browse files
committed
[BUGFIX] Make sure to do type safe comparison
Previously (before Doctrine) result row values were always string. Now sometimes they are integer as well. Make sure to cast to int when comparing integer uid.
1 parent 7302586 commit e44c734

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Renderer/RecordRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function resolveRenderingConfiguration(Request $request, RenderingCont
8989
// We explicitly ignore the case where the to be rendered id is in another root line (multi domain setup)
9090
// as this would require an additional record lookup. The use case for this is very limited anyway
9191
// and should be implemented in a different renderer instead of covering that here.
92-
if ($rootLine[0]['uid'] === (string)$id) {
92+
if ((int)$rootLine[0]['uid'] === (int)$id) {
9393
$configuration['dontCheckPid'] = '1';
9494
}
9595
}

0 commit comments

Comments
 (0)