]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing Undefined index: publicUploadEnabled
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 12 Jul 2013 15:51:01 +0000 (17:51 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 12 Jul 2013 15:51:01 +0000 (17:51 +0200)
apps/files_sharing/public.php

index 9462844a82b7be7db8a54876744fc6fd57059f2c..695c00e55418b5ea3846b596b34e1aee663d3ff0 100644 (file)
@@ -202,6 +202,7 @@ if (isset($path)) {
                        $folder->assign('isCreatable', false);
                        $folder->assign('permissions', OCP\PERMISSION_READ);
                        $folder->assign('isPublic',true);
+                       $folder->assign('publicUploadEnabled', true);
                        $folder->assign('files', $files);
                        $folder->assign('uploadMaxFilesize', $maxUploadFilesize);
                        $folder->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));