summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-14 10:29:53 +0200
committerGitHub <noreply@github.com>2019-08-14 10:29:53 +0200
commitd013ff6cae7e01f5a7e3003cde064854922297b4 (patch)
treeceb4a404c8005e9ae61722c07b5fb5bdcb889622 /apps
parentf7152cccb25e7194423edf3a2434f6dac19985bf (diff)
parent41f8be47eb4840f459cf3e99631d9b9cbb983699 (diff)
downloadnextcloud-server-d013ff6cae7e01f5a7e3003cde064854922297b4.tar.gz
nextcloud-server-d013ff6cae7e01f5a7e3003cde064854922297b4.zip
Merge pull request #16663 from JakubOnderka/patch-2
files_trashbin: File can be without extension
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/Controller/PreviewController.php2
1 files changed, 1 insertions, 1 deletions
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.