summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-06-06 17:01:55 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-06-09 13:59:59 +0200
commite7a55c4fef0195dc7c48b81556d7f44c7efbd1e5 (patch)
tree99868ad7a605e93c6d142682ec96197cd10588aa /apps/files_sharing/lib
parentc4b80b86db78e9b020780a8d075abfa9db3a0d53 (diff)
downloadnextcloud-server-e7a55c4fef0195dc7c48b81556d7f44c7efbd1e5.tar.gz
nextcloud-server-e7a55c4fef0195dc7c48b81556d7f44c7efbd1e5.zip
handle path not being set in shared cache (#24993)
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php
index 82d885a8ef3..a0519cadbaa 100644
--- a/apps/files_sharing/lib/Cache.php
+++ b/apps/files_sharing/lib/Cache.php
@@ -81,7 +81,7 @@ class Cache extends CacheJail {
}
protected function formatCacheEntry($entry) {
- $path = $entry['path'];
+ $path = isset($entry['path']) ? $entry['path'] : '';
$entry = parent::formatCacheEntry($entry);
$sharePermissions = $this->storage->getPermissions($path);
if (isset($entry['permissions'])) {