diff options
author | kondou <kondou@ts.unde.re> | 2013-10-21 19:49:09 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-10-21 19:49:27 +0200 |
commit | 732e7db31902e88e4ca6582c56af14b5e3d2bc39 (patch) | |
tree | c8f094fe7b80774fc3c207a86120e8eeb212e5e0 /apps/files/index.php | |
parent | 7864a3bf07fab1183bc003e771ee365fc1376c73 (diff) | |
download | nextcloud-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.php | 4 |
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(); } |