From 6a1a779054ffb190a4b2ad9627651810032f1f01 Mon Sep 17 00:00:00 2001 From: Marc Egger <marc.egger@uzh.ch> Date: Wed, 7 Oct 2020 13:09:52 +0200 Subject: [PATCH] fix undefined index exception --- extension/Classes/Core/QuickFormQuery.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extension/Classes/Core/QuickFormQuery.php b/extension/Classes/Core/QuickFormQuery.php index 885889370..a6606ce1d 100644 --- a/extension/Classes/Core/QuickFormQuery.php +++ b/extension/Classes/Core/QuickFormQuery.php @@ -148,6 +148,11 @@ class QuickFormQuery { $t3data[T3DATA_UID] = 0; } + if (!isset($t3data[T3DATA_HEADER])) { + // TODO: ?CR: when does this happen? why no exception thrown? + $t3data[T3DATA_HEADER] = ''; + } + // Read report file, if file keyword exists in bodytext $reportPathFileNameFull = ReportAsFile::parseFileKeyword($t3data[T3DATA_BODYTEXT]); if ($reportPathFileNameFull !== null) { -- GitLab