From 41b43cb3800155f872d7453225b0837ee8f9e78c Mon Sep 17 00:00:00 2001 From: Mattias Nilsson Date: Thu, 7 Dec 2023 15:05:51 +0100 Subject: [PATCH] [BUGFIX] Check if $languageField isset --- Classes/Xclass/Form/Container/FilesControlContainer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Xclass/Form/Container/FilesControlContainer.php b/Classes/Xclass/Form/Container/FilesControlContainer.php index 9c6baaf..48ff8ca 100644 --- a/Classes/Xclass/Form/Container/FilesControlContainer.php +++ b/Classes/Xclass/Form/Container/FilesControlContainer.php @@ -119,7 +119,7 @@ protected function getExtensionConfigurationManager(): ExtensionConfigurationMan $languageField = $GLOBALS['TCA'][$this->data['tableName']]['ctrl']['languageField']; } - if ($languageField) { + if (isset($languageField)) { $languageId = (int)$this->data['databaseRow'][$languageField]; }