Skip to content

Commit d63e5ad

Browse files
tillhoernersbuerk
authored andcommitted
[BUGFIX] Avoid undefined array key in Typo3tempFileService
Resolves: #104749 Releases: main, 12.4, 11.5 Change-Id: I0285dbeb8cabd4dc338797b6b47d3312ca2b9bb3 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85762 Tested-by: core-ci <[email protected]> Tested-by: Stefan Bürk <[email protected]> Reviewed-by: Stefan Bürk <[email protected]>
1 parent 54b74e5 commit d63e5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Service/Typo3tempFileService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected function statsFromStorages(): array
141141
protected function getStatsFromStorage(ResourceStorage $storage): array
142142
{
143143
$storageConfiguration = $storage->getConfiguration();
144-
$storageBasePath = rtrim($storageConfiguration['basePath'], '/');
144+
$storageBasePath = rtrim($storageConfiguration['basePath'] ?? '', '/');
145145
$processedPath = '/' . $storageBasePath . $storage->getProcessingFolder()->getIdentifier();
146146
$numberOfFiles = $this->processedFileRepository->countByStorage($storage);
147147

0 commit comments

Comments
 (0)