Skip to content

Commit be223d1

Browse files
authored
Merge pull request #22557 from nextcloud/bugfix/noid/group-share-failure
Do not fail if share for mountpoint is no longer available
2 parents 6a3b649 + f96853a commit be223d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_sharing/lib/External/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ public function removeShare($mountPoint) {
511511
WHERE `id` = ?
512512
');
513513
$result = (bool)$query->execute([(int)$share['id']]);
514-
} elseif ($result && (int)$share['share_type'] === IShare::TYPE_GROUP) {
514+
} elseif ($result && $share !== false && (int)$share['share_type'] === IShare::TYPE_GROUP) {
515515
$query = $this->connection->prepare('
516516
UPDATE `*PREFIX*share_external`
517517
SET `accepted` = ?

0 commit comments

Comments
 (0)