summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-03-26 13:49:47 +0100
committerJoas Schilling <coding@schilljs.com>2020-03-26 13:49:47 +0100
commit51d174a40bf6d638cf0e064a88b50d160611fe17 (patch)
tree2bcc200707d28035407893f11063169f17dcd6b7 /lib
parent902adbe1592ed2828365f765c21acad654204c3b (diff)
downloadnextcloud-server-51d174a40bf6d638cf0e064a88b50d160611fe17.tar.gz
nextcloud-server-51d174a40bf6d638cf0e064a88b50d160611fe17.zip
Also bail out when the path is actually null
Apparently this can happen when a external mount was shared that is later not available anymore Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/DefaultShareProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index e7f077f4022..6a6b39526d2 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -831,7 +831,7 @@ class DefaultShareProvider implements IShareProvider {
*/
private function isAccessibleResult($data) {
// exclude shares leading to deleted file entries
- if ($data['fileid'] === null) {
+ if ($data['fileid'] === null || $data['path'] === null) {
return false;
}