Skip to content
Snippets Groups Projects
Commit 652b7442 authored by Florian Pritz's avatar Florian Pritz
Browse files

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: default avatarFlorian Pritz <bluewind@xinu.at>
parent 2ff5df19
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment