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