From e7a55c4fef0195dc7c48b81556d7f44c7efbd1e5 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 6 Jun 2016 17:01:55 +0200 Subject: [PATCH] handle path not being set in shared cache (#24993) --- apps/files_sharing/lib/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php index 82d885a8ef..a0519cadba 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'])) {