files_trashbin: File can be without extension

Signed-off-by: Jakub Onderka <jakub.onderka@gmail.com>
This commit is contained in:
Jakub Onderka 2019-08-06 10:55:13 +02:00 committed by Jakub Onderka
parent effca30d10
commit 41f8be47eb
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.