Skip to content

Commit f316edb

Browse files
authored
Merge pull request #43652 from hopleus/bugfix/fixed-get-filename-in-fileinfo
2 parents 4cf392f + a25c70c commit f316edb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/private/Files/FileInfo.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ public function getMimePart() {
181181
* @return string
182182
*/
183183
public function getName() {
184-
return isset($this->data['name']) ? $this->data['name'] : basename($this->getPath());
184+
return empty($this->data['name'])
185+
? basename($this->getPath())
186+
: $this->data['name'];
185187
}
186188

187189
/**

0 commit comments

Comments
 (0)