]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix undefined index
authorJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 13 Feb 2014 15:52:49 +0000 (16:52 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 13 Feb 2014 15:52:49 +0000 (16:52 +0100)
apps/files/index.php
apps/files_sharing/public.php

index 2d1ae26bba26d730e6407f945dcf627498f13708..4ef24b21a93d1a0e699cd714b5dd77aa33465dea 100644 (file)
@@ -144,5 +144,6 @@ if ($needUpgrade) {
        $tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']);
        $tmpl->assign('isPublic', false);
        $tmpl->assign('publicUploadEnabled', $publicUploadEnabled);
+       $tmpl->assign('disableSharing', false);
        $tmpl->printPage();
 }
index 848f423c264c7941efd922d75b5bffef39359352..d569286eb20da349637f5e38a450c2b4c4eca1d2 100644 (file)
@@ -206,6 +206,8 @@ if (isset($path)) {
                        $folder->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
                        $folder->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
                        $folder->assign('usedSpacePercent', 0);
+                       $folder->assign('disableSharing', true);
+                       $folder->assign('trash', false);
                        $tmpl->assign('folder', $folder->fetchPage());
                        $allowZip = OCP\Config::getSystemValue('allowZipDownload', true)
                                                && $totalSize <= OCP\Config::getSystemValue('maxZipInputSize', OCP\Util::computerFileSize('800 MB'));