Skip to content

Commit

Permalink
[BUGFIX] Use array key access guard in WorkspaceVersionRecordsCommand
Browse files Browse the repository at this point in the history
Resolves: #98361
Releases: main, 11.5
Change-Id: Ib94267b45199a5cf5cce3fa48df51e53cff9a256
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75741
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
DanielSiepmann authored and lolli42 committed Sep 16, 2022
1 parent 375ed15 commit 114b677
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -348,7 +348,7 @@ protected function traversePageTreeForVersionedRecords(int $rootID, int $depth,
$versions = BackendUtility::selectVersionsOfRecord('pages', $rootID, 'uid,t3ver_oid,t3ver_wsid', null, true);
if (is_array($versions)) {
foreach ($versions as $verRec) {
if (!$verRec['_CURRENT_VERSION']) {
if (!($verRec['_CURRENT_VERSION'] ?? false)) {
$this->traversePageTreeForVersionedRecords((int)$verRec['uid'], $depth, true, true);
}
}
Expand Down

0 comments on commit 114b677

Please sign in to comment.