diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-10-23 23:47:06 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-10-23 23:47:06 +0200 |
commit | 5987099d2a7801d89310dc9e829927a67c1af9d2 (patch) | |
tree | 991b9a1b576d6a0f601dd48dac64c470c6dee4cc /apps/files_trashbin | |
parent | db1096bcfdf2336ccf6aefb70dd902a63ed615db (diff) | |
download | nextcloud-server-5987099d2a7801d89310dc9e829927a67c1af9d2.tar.gz nextcloud-server-5987099d2a7801d89310dc9e829927a67c1af9d2.zip |
Remove unneeded check if app is enabled
App code will not be executable if the app is not enabled, because the autoloader refuses to load that class.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/Hooks.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_trashbin/lib/Hooks.php b/apps/files_trashbin/lib/Hooks.php index eb585aa051c..036294cc144 100644 --- a/apps/files_trashbin/lib/Hooks.php +++ b/apps/files_trashbin/lib/Hooks.php @@ -39,10 +39,8 @@ class Hooks { * to remove the used space for the trash bin stored in the database */ public static function deleteUser_hook($params) { - if( \OCP\App::isEnabled('files_trashbin') ) { - $uid = $params['uid']; - Trashbin::deleteUser($uid); - } + $uid = $params['uid']; + Trashbin::deleteUser($uid); } public static function post_write_hook($params) { |