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 2d276c8 + 3a88438 commit f1da90fCopy full SHA for f1da90f
1 file changed
lib/private/Files/FileInfo.php
@@ -185,7 +185,9 @@ public function getMimePart() {
185
* @return string
186
*/
187
public function getName() {
188
- return isset($this->data['name']) ? $this->data['name'] : basename($this->getPath());
+ return empty($this->data['name'])
189
+ ? basename($this->getPath())
190
+ : $this->data['name'];
191
}
192
193
/**
0 commit comments