We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4cf392f + a25c70c commit f316edbCopy full SHA for f316edb
1 file changed
lib/private/Files/FileInfo.php
@@ -181,7 +181,9 @@ public function getMimePart() {
181
* @return string
182
*/
183
public function getName() {
184
- return isset($this->data['name']) ? $this->data['name'] : basename($this->getPath());
+ return empty($this->data['name'])
185
+ ? basename($this->getPath())
186
+ : $this->data['name'];
187
}
188
189
/**
0 commit comments