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

Fix unnecessary boolean cast
This commit is contained in:
Morris Jobke 2019-03-06 11:42:14 +01:00 committed by GitHub
commit bdf95ef0ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {