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:
commit
969da6cca6
|
@ -530,7 +530,7 @@ class Manager {
|
||||||
WHERE `id` = ?
|
WHERE `id` = ?
|
||||||
');
|
');
|
||||||
$result = (bool)$query->execute([(int)$share['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('
|
$query = $this->connection->prepare('
|
||||||
UPDATE `*PREFIX*share_external`
|
UPDATE `*PREFIX*share_external`
|
||||||
SET `accepted` = ?
|
SET `accepted` = ?
|
||||||
|
|
Loading…
Reference in New Issue