Browse Source

Merge pull request #14558 from nextcloud/fix/13790/fix-comment

Fix unnecessary boolean cast
tags/v16.0.0beta1
Morris Jobke 5 years ago
parent
commit
bdf95ef0ec
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/files_sharing/lib/External/Manager.php

+ 1
- 1
apps/files_sharing/lib/External/Manager.php View File

@@ -522,7 +522,7 @@ class Manager {

$share = $getShare->fetch();
$getShare->closeCursor();
if ($result && (bool)$share !== false && (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) {

Loading…
Cancel
Save