From 41f8be47eb4840f459cf3e99631d9b9cbb983699 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Tue, 6 Aug 2019 10:55:13 +0200 Subject: [PATCH] files_trashbin: File can be without extension Signed-off-by: Jakub Onderka --- apps/files_trashbin/lib/Controller/PreviewController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_trashbin/lib/Controller/PreviewController.php b/apps/files_trashbin/lib/Controller/PreviewController.php index ace3d10bf98..5f4419b3e50 100644 --- a/apps/files_trashbin/lib/Controller/PreviewController.php +++ b/apps/files_trashbin/lib/Controller/PreviewController.php @@ -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. -- 2.39.5