From 7a0254b15bd2b4aa9680791a2ecbb740b997003d 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'])) {