]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixes files_drop when avatars are disabled 2459/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 10 Nov 2016 19:55:18 +0000 (20:55 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 2 Dec 2016 00:16:33 +0000 (01:16 +0100)
Fixes: #2080
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/files_sharing/js/files_drop.js

index 984eb06b9e3dbe5da8ec07c94cb6d96df9e4686c..39a977c4c97446876b88ef9f2596b2ad0da7516d 100644 (file)
@@ -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);
                }