Skip to content

Commit

Permalink
[BUGFIX] Check if $languageField isset
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasNilsson committed Dec 7, 2023
1 parent e71d1df commit 41b43cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Xclass/Form/Container/FilesControlContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 41b43cb

Please sign in to comment.