diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-09-03 12:59:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 12:59:45 +0200 |
commit | be223d1e46c8db52c58d43051d96c85b513c69ac (patch) | |
tree | 33eb676d45af55a21f17d9650a97fa55c3ea5d2f | |
parent | 6a3b649e9373b85754aebb2af863ef567befd3d3 (diff) | |
parent | f96853a19c6925af5153fe4f5316d9e7b3f49d7f (diff) | |
download | nextcloud-server-be223d1e46c8db52c58d43051d96c85b513c69ac.tar.gz nextcloud-server-be223d1e46c8db52c58d43051d96c85b513c69ac.zip |
Merge pull request #22557 from nextcloud/bugfix/noid/group-share-failure
Do not fail if share for mountpoint is no longer available
-rw-r--r-- | apps/files_sharing/lib/External/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php index 0b87c24c648..9513fa0ce6f 100644 --- a/apps/files_sharing/lib/External/Manager.php +++ b/apps/files_sharing/lib/External/Manager.php @@ -511,7 +511,7 @@ class Manager { WHERE `id` = ? '); $result = (bool)$query->execute([(int)$share['id']]); - } elseif ($result && (int)$share['share_type'] === IShare::TYPE_GROUP) { + } elseif ($result && $share !== false && (int)$share['share_type'] === IShare::TYPE_GROUP) { $query = $this->connection->prepare(' UPDATE `*PREFIX*share_external` SET `accepted` = ? |