Skip to content

Commit fde4c54

Browse files
authored
Merge pull request #13790 from fretn/master
Fix for crashing occ files:scan
2 parents 7fa0615 + 7efcd11 commit fde4c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/lib/External/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ public function removeShare($mountPoint) {
522522

523523
$share = $getShare->fetch();
524524
$getShare->closeCursor();
525-
if ($result && (int)$share['share_type'] === Share::SHARE_TYPE_USER) {
525+
if ($result && (bool)$share !== false && (int)$share['share_type'] === Share::SHARE_TYPE_USER) {
526526
try {
527527
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
528528
} catch (\Exception $e) {

0 commit comments

Comments
 (0)