Commit 637fb942 authored by Christian Kuhn's avatar Christian Kuhn Committed by Oliver Bartsch
Browse files

[BUGFIX] Another DataHandler PHP 8 fix

A rather obvious TCA access scenario.

Resolves: #94611
Releases: master
Change-Id: Ie4ac8c7d1978e89de28076e0d036db1930c51149
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70021

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Jochen's avatarJochen <rothjochen@gmail.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Jochen's avatarJochen <rothjochen@gmail.com>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent b8d7cddb
......@@ -4836,7 +4836,7 @@ class DataHandler implements LoggerAwareInterface
// Clear cache before deleting the record, else the correct page cannot be identified by clear_cache
[$parentUid] = BackendUtility::getTSCpid($table, $uid, '');
$this->registerRecordIdForPageCacheClearing($table, $uid, $parentUid);
$deleteField = $GLOBALS['TCA'][$table]['ctrl']['delete'];
$deleteField = $GLOBALS['TCA'][$table]['ctrl']['delete'] ?? false;
$databaseErrorMessage = '';
if ($recordWorkspaceId > 0) {
// If this is a workspace record, use discard
......
Markdown is supported
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