Merge pull request #22557 from nextcloud/bugfix/noid/group-share-failure

Do not fail if share for mountpoint is no longer available
This commit is contained in:
blizzz 2020-09-03 12:59:45 +02:00 committed by GitHub
commit be223d1e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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` = ?