Skip to content

Commit d013ff6

Browse files
authored
Merge pull request #16663 from JakubOnderka/patch-2
files_trashbin: File can be without extension
2 parents f7152cc + 41f8be4 commit d013ff6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_trashbin/lib/Controller/PreviewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function getPreview(
103103
}
104104

105105
$pathParts = pathinfo($file->getName());
106-
$extension = $pathParts['extension'];
106+
$extension = $pathParts['extension'] ?? '';
107107
$fileName = $pathParts['filename'];
108108
/*
109109
* Files in the root of the trashbin are timetamped.

0 commit comments

Comments
 (0)