Skip to content

Commit

Permalink
[BUGFIX] PHP 8 warning in ContentObjectRenderer::editIcons
Browse files Browse the repository at this point in the history
Added a null coalescing operator when assigning value to $editUid.

Resolves: #101602
Releases: 11.5
Change-Id: Ie19fa72032c57c824322a319deafc441fdb9319e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80427
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
thomashohn authored and bmack committed Aug 7, 2023
1 parent d5d30fb commit b205d6e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -6684,7 +6684,7 @@ public function editIcons($content, $params, array $conf = [], $currentRecord =
return $content;
}

$editUid = $dataArray['_LOCALIZED_UID'] ?: $currentRecordUID;
$editUid = $dataArray['_LOCALIZED_UID'] ?? $currentRecordUID;
// Edit icons imply that the editing action is generally allowed, assuming page and content element permissions permit it.
if (!array_key_exists('allow', $conf)) {
$conf['allow'] = 'edit';
Expand Down

0 comments on commit b205d6e

Please sign in to comment.