mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
fix: don't set 'name' on null metadata
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
5ee4c9effa
commit
ae30269eac
1 changed files with 3 additions and 1 deletions
|
|
@ -280,7 +280,9 @@ class Encoding extends Wrapper {
|
|||
|
||||
public function getMetaData(string $path): ?array {
|
||||
$entry = $this->storage->getMetaData($this->findPathToUse($path));
|
||||
$entry['name'] = trim(Filesystem::normalizePath($entry['name']), '/');
|
||||
if ($entry !== null) {
|
||||
$entry['name'] = trim(Filesystem::normalizePath($entry['name']), '/');
|
||||
}
|
||||
return $entry;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue