Skip to content

Commit

Permalink
[BUGFIX] Fix array access error in LinkAnalyzerResult
Browse files Browse the repository at this point in the history
Doctrine dbal function fetchAssociative() was used in combination
with accessing an array element without null colesce.

Resolves: #103423
Releases: main, 12.4, 11.5
Change-Id: I6f5842f28722dc8b2716533e818fc40ed2fc25ef
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83660
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
  • Loading branch information
sypets authored and sbuerk committed Apr 5, 2024
1 parent 03fe7c4 commit 14d5d0c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -251,7 +251,7 @@ protected function getLocalizedPageId(int $parentId, int $languageId): int
)
->setMaxResults(1)
->executeQuery()
->fetchAssociative()['uid'] ?: 0;
->fetchOne();

if ($localizedPageId) {
$this->localizedPages[$identifier] = $localizedPageId;
Expand Down

0 comments on commit 14d5d0c

Please sign in to comment.