From c6c1bd1e19fd74ecfe0bd2abbb4ae8d6820a45cb Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 10 Nov 2016 20:55:18 +0100 Subject: [PATCH] Fixes files_drop when avatars are disabled Fixes: #2080 Signed-off-by: Roeland Jago Douma --- apps/files_sharing/js/files_drop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/js/files_drop.js b/apps/files_sharing/js/files_drop.js index 984eb06b9e3..39a977c4c97 100644 --- a/apps/files_sharing/js/files_drop.js +++ b/apps/files_sharing/js/files_drop.js @@ -97,7 +97,7 @@ }; $(document).ready(function() { - if($('#upload-only-interface').val() === "1") { + if($('#upload-only-interface').val() === "1" && oc_config.enable_avatars) { $('.avatardiv').avatar($('#sharingUserId').val(), 128, true); } -- 2.39.5