diff --git a/typo3/sysext/recycler/Classes/Controller/DeletedRecordsController.php b/typo3/sysext/recycler/Classes/Controller/DeletedRecordsController.php index 15294b475fe28c7e9d5097ab5b33e119633a08dd..b7411c3fba899dc0cf798473896d28950102f7c6 100644 --- a/typo3/sysext/recycler/Classes/Controller/DeletedRecordsController.php +++ b/typo3/sysext/recycler/Classes/Controller/DeletedRecordsController.php @@ -23,6 +23,7 @@ use TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore; use TYPO3\CMS\Core\Imaging\Icon; use TYPO3\CMS\Core\Imaging\IconFactory; use TYPO3\CMS\Core\Utility\GeneralUtility; +use TYPO3\CMS\Extbase\Utility\LocalizationUtility; use TYPO3\CMS\Recycler\Utility\RecyclerUtility; /** @@ -131,7 +132,14 @@ class DeletedRecordsController $username = $this->runtimeCache->get($cacheId); } else { $backendUser = BackendUtility::getRecord('be_users', $userId, 'username', '', false); - $username = $backendUser['username']; + if ($backendUser === null) { + $username = sprintf( + '[%s]', + LocalizationUtility::translate('LLL:EXT:recycler/Resources/Private/Language/locallang.xlf:record.deleted') + ); + } else { + $username = $backendUser['username']; + } $this->runtimeCache->set($cacheId, $username); } return $username; diff --git a/typo3/sysext/recycler/Resources/Private/Language/locallang.xlf b/typo3/sysext/recycler/Resources/Private/Language/locallang.xlf index e0812d710c31233b2bc468526cbb7d02f8404668..ee64303cc4210b404433d233fc0b2b0bc90d9aa4 100644 --- a/typo3/sysext/recycler/Resources/Private/Language/locallang.xlf +++ b/typo3/sysext/recycler/Resources/Private/Language/locallang.xlf @@ -123,6 +123,9 @@ <trans-unit id="table.header.path"> <source>Path</source> </trans-unit> + <trans-unit id="record.deleted"> + <source>deleted</source> + </trans-unit> </body> </file> </xliff>