diff --git a/files/templates/index.php b/files/templates/index.php index fc01c751a6a1f0505c723e78d3a6362f17aa3f0b..76531b22ed5fce154d93b4702e19db0cfebdaf17 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>