summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/index.php')
-rw-r--r--apps/files/index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index 22240deadca..c2c0ba02a99 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -119,7 +119,8 @@ if ($needUpgrade) {
}
$isCreatable = \OC\Files\Filesystem::isCreatable($dir . '/');
- $emptyContent = (!isset($files) or count($files) > 0 or $ajaxLoad);
+ $fileHeader = (!isset($files) or count($files) > 0);
+ $emptyContent = $isCreatable or $fileHeader or $ajaxLoad;
OCP\Util::addscript('files', 'fileactions');
OCP\Util::addscript('files', 'files');
@@ -145,6 +146,7 @@ if ($needUpgrade) {
$tmpl->assign('disableSharing', false);
$tmpl->assign('ajaxLoad', $ajaxLoad);
$tmpl->assign('emptyContent', $emptyContent);
+ $tmpl->assign('fileHeader', $fileHeader);
$tmpl->printPage();
}