Browse Source

Do not fail if share for mountpoint is no longer available

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v20.0.0beta3
Julius Härtl 3 years ago
parent
commit
f96853a19c
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/files_sharing/lib/External/Manager.php

+ 1
- 1
apps/files_sharing/lib/External/Manager.php View File

@@ -511,7 +511,7 @@ class Manager {
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` = ?

Loading…
Cancel
Save