Merge pull request #22713 from nextcloud/backport/stable19/22557

[stable19] Do not fail if share for mountpoint is no longer available
This commit is contained in:
Morris Jobke 2020-09-09 15:10:11 +02:00 committed by GitHub
commit 969da6cca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ class Manager {
WHERE `id` = ?
');
$result = (bool)$query->execute([(int)$share['id']]);
} elseif ($result && (int)$share['share_type'] === Share::SHARE_TYPE_GROUP) {
} elseif ($result && $share !== false && (int)$share['share_type'] === Share::SHARE_TYPE_GROUP) {
$query = $this->connection->prepare('
UPDATE `*PREFIX*share_external`
SET `accepted` = ?