Skip to content

Commit

Permalink
Merge pull request #22713 from nextcloud/backport/stable19/22557
Browse files Browse the repository at this point in the history
[stable19] Do not fail if share for mountpoint is no longer available
  • Loading branch information
MorrisJobke committed Sep 9, 2020
2 parents 3e6c0de + 57eef41 commit 969da6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/External/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public function removeShare($mountPoint) {
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` = ?
Expand Down

0 comments on commit 969da6c

Please sign in to comment.