Merge pull request #16663 from JakubOnderka/patch-2

files_trashbin: File can be without extension
This commit is contained in:
Roeland Jago Douma 2019-08-14 10:29:53 +02:00 committed by GitHub
commit d013ff6cae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class PreviewController extends Controller {
}
$pathParts = pathinfo($file->getName());
$extension = $pathParts['extension'];
$extension = $pathParts['extension'] ?? '';
$fileName = $pathParts['filename'];
/*
* Files in the root of the trashbin are timetamped.