Skip to content

Commit

Permalink
Do not fail if share for mountpoint is no longer available
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Sep 8, 2020
1 parent c3a6f50 commit 57eef41
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 57eef41

Please sign in to comment.