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/+/75644
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
DanielSiepmann authored and lolli42 committed Sep 16, 2022
1 parent bbeb1ea commit 58b6a5b
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 58b6a5b

Please sign in to comment.