summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-06 11:42:14 +0100
committerGitHub <noreply@github.com>2019-03-06 11:42:14 +0100
commitbdf95ef0eca7ac1db75b743c9d6ca232e6d3f3a3 (patch)
tree1def91e03e1e8f9c4ff377cdb98d2cf08fa2359b
parentd004164fcc4dc887cae388e68f8ded3b4ea166ad (diff)
parent4b49e2eb5204055f082090de320203a55b2b34e6 (diff)
downloadnextcloud-server-bdf95ef0eca7ac1db75b743c9d6ca232e6d3f3a3.tar.gz
nextcloud-server-bdf95ef0eca7ac1db75b743c9d6ca232e6d3f3a3.zip
Merge pull request #14558 from nextcloud/fix/13790/fix-comment
Fix unnecessary boolean cast
-rw-r--r--apps/files_sharing/lib/External/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php
index 3b033805fbf..0cf7d899234 100644
--- a/apps/files_sharing/lib/External/Manager.php
+++ b/apps/files_sharing/lib/External/Manager.php
@@ -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) {