Skip to content

Commit

Permalink
Merge pull request #14968 from nextcloud/backport/13790/stable15
Browse files Browse the repository at this point in the history
[stable15] Fix for crashing occ files:scan
  • Loading branch information
MorrisJobke authored Apr 8, 2019
2 parents 20687ad + 4021e76 commit 3fc462e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/External/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ public function removeShare($mountPoint) {

$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) {
Expand Down

0 comments on commit 3fc462e

Please sign in to comment.