diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-03-06 10:12:58 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-03-06 10:12:58 +0100 |
commit | 4b49e2eb5204055f082090de320203a55b2b34e6 (patch) | |
tree | a0ac72ffbda9c95bc70b1ac1cf395ee0d59ccf2c /apps/files_sharing/lib/External | |
parent | fde4c541361980a8a1346168af192f2f76f3abb3 (diff) | |
download | nextcloud-server-4b49e2eb5204055f082090de320203a55b2b34e6.tar.gz nextcloud-server-4b49e2eb5204055f082090de320203a55b2b34e6.zip |
Fix unnecessary boolean cast
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing/lib/External')
-rw-r--r-- | apps/files_sharing/lib/External/Manager.php | 2 |
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) { |