Commit 7d1db267 authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[BUGFIX] Fix PHP warning in Recycler

Resolves: #99255
Releases: main, 11.5
Change-Id: I10981e55a9efe2a891bf61ca304a287ec2759aad
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77562


Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent d1fa4dd0
......@@ -166,7 +166,7 @@ class RecyclerAjaxController
foreach ($deletedRowsArray as $table => $rows) {
$groupedRecords[$table]['information'] = [
'table' => $table,
'title' => $lang->sL($GLOBALS['TCA'][$table]['ctrl']['title']),
'title' => isset($GLOBALS['TCA'][$table]['ctrl']['title']) ? $lang->sL($GLOBALS['TCA'][$table]['ctrl']['title']) : BackendUtility::getNoRecordTitle(),
];
foreach ($rows as $row) {
$pageTitle = $this->getPageTitle((int)$row['pid']);
......@@ -180,8 +180,8 @@ class RecyclerAjaxController
'pid' => $row['pid'],
'icon' => $this->iconFactory->getIconForRecord($table, $row, Icon::SIZE_SMALL)->render(),
'pageTitle' => $pageTitle,
'crdate' => BackendUtility::datetime($row[$GLOBALS['TCA'][$table]['ctrl']['crdate']]),
'tstamp' => BackendUtility::datetime($row[$GLOBALS['TCA'][$table]['ctrl']['tstamp']]),
'crdate' => isset($GLOBALS['TCA'][$table]['ctrl']['crdate']) ? BackendUtility::datetime($row[$GLOBALS['TCA'][$table]['ctrl']['crdate']]) : '',
'tstamp' => isset($GLOBALS['TCA'][$table]['ctrl']['tstamp']) ? BackendUtility::datetime($row[$GLOBALS['TCA'][$table]['ctrl']['tstamp']]) : '',
'owner' => $backendUserName,
'owner_uid' => $ownerUid,
'title' => BackendUtility::getRecordTitle($table, $row),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment