Do not fail if share for mountpoint is no longer available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
c3a6f50206
commit
57eef41da0
|
@ -530,7 +530,7 @@ class Manager {
|
||||||
WHERE `id` = ?
|
WHERE `id` = ?
|
||||||
');
|
');
|
||||||
$result = (bool)$query->execute([(int)$share['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('
|
$query = $this->connection->prepare('
|
||||||
UPDATE `*PREFIX*share_external`
|
UPDATE `*PREFIX*share_external`
|
||||||
SET `accepted` = ?
|
SET `accepted` = ?
|
||||||
|
|
Loading…
Reference in New Issue