summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>