diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-03 12:17:59 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-09-03 12:17:59 +0300 |
commit | f96853a19c6925af5153fe4f5316d9e7b3f49d7f (patch) | |
tree | a8dcc557bee05f5f85417abdf2059c125ade0df9 /apps/files_sharing | |
parent | 34aca4632574d153c716589a08497c0957b3679f (diff) |
Do not fail if share for mountpoint is no longer available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/External/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php index 0b87c24c648..9513fa0ce6f 100644 --- a/apps/files_sharing/lib/External/Manager.php +++ b/apps/files_sharing/lib/External/Manager.php @@ -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` = ? |