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 3, 2020
1 parent 34aca46 commit f96853a
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 @@ -511,7 +511,7 @@ public function removeShare($mountPoint) {
WHERE `id` = ?
');
$result = (bool)$query->execute([(int)$share['id']]);
} elseif ($result && (int)$share['share_type'] === IShare::TYPE_GROUP) {
} elseif ($result && $share !== false && (int)$share['share_type'] === IShare::TYPE_GROUP) {
$query = $this->connection->prepare('
UPDATE `*PREFIX*share_external`
SET `accepted` = ?
Expand Down

0 comments on commit f96853a

Please sign in to comment.