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

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