diff --git a/typo3/sysext/backend/Classes/Form/Element/LinkElement.php b/typo3/sysext/backend/Classes/Form/Element/LinkElement.php index 52ebafd8e0189b45e4feefcadd9733b2ddcad962..8986b75bc6474c11e3995aa79f3fca21a98e6c6d 100644 --- a/typo3/sysext/backend/Classes/Form/Element/LinkElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/LinkElement.php @@ -427,7 +427,9 @@ class LinkElement extends AbstractFormElement ]; } - $data['additionalAttributes'] = '<div class="form-text">' . implode(' - ', $additionalAttributes) . '</div>'; + $data['additionalAttributes'] = $additionalAttributes !== [] + ? '<div class="form-text">' . implode(' - ', $additionalAttributes) . '</div>' + : ''; // Ensure "additionalAttributes" is always set (bw compatibility for the event) return GeneralUtility::makeInstance(EventDispatcherInterface::class)->dispatch( new ModifyLinkExplanationEvent($data, $linkData, $linkParts, $this->data)