Skip to content
Snippets Groups Projects
Unverified Commit fde4c541 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #13790 from fretn/master

Fix for crashing occ files:scan
parents 7fa0615e 7efcd11b
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment