summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-06 10:12:14 +0100
committerGitHub <noreply@github.com>2019-03-06 10:12:14 +0100
commitfde4c541361980a8a1346168af192f2f76f3abb3 (patch)
tree218bda899ebb7cd6128cac5f4668b9ad2dc0dd5a /apps
parent7fa0615e6d7d90512cb42b7a20b3fb0a1787353c (diff)
parent7efcd11b8e75db91a957041408978c3b0f4aa3e7 (diff)
downloadnextcloud-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.php2
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) {