diff --git a/typo3/sysext/recordlist/Classes/Browser/FolderBrowser.php b/typo3/sysext/recordlist/Classes/Browser/FolderBrowser.php
index 976f1fb293ad..1a65d385fd87 100644
--- a/typo3/sysext/recordlist/Classes/Browser/FolderBrowser.php
+++ b/typo3/sysext/recordlist/Classes/Browser/FolderBrowser.php
@@ -163,8 +163,8 @@ protected function renderFolders(Folder $parentFolder)
$icon = '';
$icon .= '' . $this->iconFactory->getIcon('apps-filetree-folder-default', Icon::SIZE_SMALL) . '';
// Create links for adding the folder:
- $aTag = '';
- $aTag_alt = '';
+ $aTag = '';
+ $aTag_alt = '';
if (strstr($subFolderIdentifier, ',') || strstr($subFolderIdentifier, '|')) {
// In case an invalid character is in the filepath, display error message:
$errorMessage = sprintf(htmlspecialchars($lang->getLL('invalidChar')), ', |');