Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-22 21:47:25 +0400
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 20:41:49 +0400
commit652b74420130e94739ea860f77182f72800c8e55 (patch)
tree78481b4debe21238f48e25cce58da9557f465796 /files
parent2ff5df192b80da9e4bd773dcf48564dcd2fa51ed (diff)
don't print empty folder warning if it will be hidden
No point in wasting resources if you don't show it. This also fixes an undefined variable notice. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'files')
-rw-r--r--files/templates/index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/files/templates/index.php b/files/templates/index.php
index fc01c751a6a..76531b22ed5 100644
--- a/files/templates/index.php
+++ b/files/templates/index.php
@@ -21,7 +21,11 @@
</div>
<div id='notification'></div>
-<div id="emptyfolder" <?php if(count($_['files'])) echo 'style="display:none;"';?>><?php echo $l->t('Nothing in here. Upload something!')?></div>
+<?php
+if (isset($_['files'])) {
+ if (!count($_['files'])) { ?>
+<div id="emptyfolder"><?php echo $l->t('Nothing in here. Upload something!')?></div>
+<?php }}?>
<table>
<thead>