diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-14 10:29:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-14 10:29:53 +0200 |
commit | d013ff6cae7e01f5a7e3003cde064854922297b4 (patch) | |
tree | ceb4a404c8005e9ae61722c07b5fb5bdcb889622 /apps | |
parent | f7152cccb25e7194423edf3a2434f6dac19985bf (diff) | |
parent | 41f8be47eb4840f459cf3e99631d9b9cbb983699 (diff) | |
download | nextcloud-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.php | 2 |
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. |