Merge pull request #12549 from owncloud/shared-cache-non-existing
Dont return cached date in shared cache when the file doesn't exist
This commit is contained in:
commit
3026cdbc80
|
@ -89,6 +89,7 @@ class Shared_Cache extends Cache {
|
|||
$cache = $this->getSourceCache($file);
|
||||
if ($cache) {
|
||||
$data = $cache->get($this->files[$file]);
|
||||
if ($data) {
|
||||
$data['displayname_owner'] = \OC_User::getDisplayName($this->storage->getSharedFrom());
|
||||
$data['path'] = $file;
|
||||
if ($file === '') {
|
||||
|
@ -100,6 +101,7 @@ class Shared_Cache extends Cache {
|
|||
} else {
|
||||
$data['permissions'] = $this->storage->getPermissions($file);
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue