don't show empty trash bin message for sub folders

This commit is contained in:
Björn Schießle 2013-02-21 00:02:52 +01:00
parent 2d6efae257
commit fc1fba2304
2 changed files with 2 additions and 1 deletions

View File

@ -94,6 +94,7 @@ $list->assign('disableDownloadActions', true);
$tmpl->assign('breadcrumb', $breadcrumbNav->fetchPage(), false);
$tmpl->assign('fileList', $list->fetchPage(), false);
$tmpl->assign('files', $files);
$tmpl->assign('dirlisting', $dirlisting);
$tmpl->assign('dir', OC_Filesystem::normalizePath($view->getAbsolutePath()));
$tmpl->printPage();

View File

@ -5,7 +5,7 @@
</div>
<div id='notification'></div>
<?php if (isset($_['files']) && count($_['files'])==0):?>
<?php if (isset($_['files']) && count($_['files'])==0 && $_['dirlisting'] == false):?>
<div id="emptyfolder"><?php echo $l->t('Nothing in here. Your trash bin is empty!')?></div>
<?php endif; ?>