mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #14968 from nextcloud/backport/13790/stable15
[stable15] Fix for crashing occ files:scan
This commit is contained in:
commit
3fc462e332
1 changed files with 1 additions and 1 deletions
2
apps/files_sharing/lib/External/Manager.php
vendored
2
apps/files_sharing/lib/External/Manager.php
vendored
|
|
@ -522,7 +522,7 @@ class Manager {
|
|||
|
||||
$share = $getShare->fetch();
|
||||
$getShare->closeCursor();
|
||||
if ($result && (int)$share['share_type'] === Share::SHARE_TYPE_USER) {
|
||||
if ($result && $share !== false && (int)$share['share_type'] === Share::SHARE_TYPE_USER) {
|
||||
try {
|
||||
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
|
||||
} catch (\Exception $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue