summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-10-21 19:49:09 +0200
committerkondou <kondou@ts.unde.re>2013-10-21 19:49:27 +0200
commit732e7db31902e88e4ca6582c56af14b5e3d2bc39 (patch)
treec8f094fe7b80774fc3c207a86120e8eeb212e5e0 /apps/files/index.php
parent7864a3bf07fab1183bc003e771ee365fc1376c73 (diff)
downloadnextcloud-server-732e7db31902e88e4ca6582c56af14b5e3d2bc39.tar.gz
nextcloud-server-732e7db31902e88e4ca6582c56af14b5e3d2bc39.zip
Fix mind-boggling emptycontent logic
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();
}