diff --git a/Classes/FormEngine/Elements/History.php b/Classes/FormEngine/Elements/History.php index 08a3946..0b0c922 100644 --- a/Classes/FormEngine/Elements/History.php +++ b/Classes/FormEngine/Elements/History.php @@ -56,10 +56,10 @@ public function render() } $languageId = 0; - if (array_key_exists('0', (array)$this->data['databaseRow']['sys_language_uid']) && - $this->data['databaseRow']['sys_language_uid'][0] - ) { + if (is_array($this->data['databaseRow']['sys_language_uid']) && ($this->data['databaseRow']['sys_language_uid'][0] ?? false)) { $languageId = (int)$this->data['databaseRow']['sys_language_uid'][0]; + } elseif (is_numeric($this->data['databaseRow']['sys_language_uid'])) { + $languageId = (int)$this->data['databaseRow']['sys_language_uid']; } $resultArray = $this->initializeResultArray();