Commit 7378d133 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Oliver Bartsch
Browse files

[BUGFIX] Fix undefined array key warning in DataHandler

Not all tables have tstamp defined in their ctrl section.

Resolves: #97588
Releases: main, 11.5
Change-Id: Ibddaab2e313bc2511b1f9aa903ed312d3cf7f9bd
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74577

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 6f37527f
...@@ -4337,7 +4337,7 @@ class DataHandler implements LoggerAwareInterface ...@@ -4337,7 +4337,7 @@ class DataHandler implements LoggerAwareInterface
} }
// Timestamp field: // Timestamp field:
$updateFields = []; $updateFields = [];
if ($GLOBALS['TCA'][$table]['ctrl']['tstamp']) { if ($GLOBALS['TCA'][$table]['ctrl']['tstamp'] ?? false) {
$updateFields[$GLOBALS['TCA'][$table]['ctrl']['tstamp']] = $GLOBALS['EXEC_TIME']; $updateFields[$GLOBALS['TCA'][$table]['ctrl']['tstamp']] = $GLOBALS['EXEC_TIME'];
} }
......
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