diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-03-06 10:12:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 10:12:14 +0100 |
commit | fde4c541361980a8a1346168af192f2f76f3abb3 (patch) | |
tree | 218bda899ebb7cd6128cac5f4668b9ad2dc0dd5a /apps | |
parent | 7fa0615e6d7d90512cb42b7a20b3fb0a1787353c (diff) | |
parent | 7efcd11b8e75db91a957041408978c3b0f4aa3e7 (diff) | |
download | nextcloud-server-fde4c541361980a8a1346168af192f2f76f3abb3.tar.gz nextcloud-server-fde4c541361980a8a1346168af192f2f76f3abb3.zip |
Merge pull request #13790 from fretn/master
Fix for crashing occ files:scan
Diffstat (limited to 'apps')
-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 6a036b663d9..3b033805fbf 100644 --- a/apps/files_sharing/lib/External/Manager.php +++ b/apps/files_sharing/lib/External/Manager.php @@ -522,7 +522,7 @@ class Manager { $share = $getShare->fetch(); $getShare->closeCursor(); - if ($result && (int)$share['share_type'] === Share::SHARE_TYPE_USER) { + if ($result && (bool)$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) { |