mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Merge pull request #22714 from nextcloud/backport/stable18/22557
[stable18] Do not fail if share for mountpoint is no longer available
This commit is contained in:
commit
f1a7854c08
1 changed files with 1 additions and 1 deletions
2
apps/files_sharing/lib/External/Manager.php
vendored
2
apps/files_sharing/lib/External/Manager.php
vendored
|
|
@ -536,7 +536,7 @@ class Manager {
|
|||
WHERE `id` = ?
|
||||
');
|
||||
$result = (bool)$query->execute(array((int)$share['id']));
|
||||
} else if ($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` = ?
|
||||
|
|
|
|||
Loading…
Reference in a new issue