Ne liste pas les comptes FTP si il n'en existe pas

This commit is contained in:
Alan Garcia 2013-01-29 09:38:50 +00:00
parent 0ff32f590d
commit 1376be6f99
1 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,6 @@
/* ############# FTP ############# */
$q = $quota->getquota("ftp");
if ($q["t"] > 0 || $q['u'] > 0) {
?>
@ -37,9 +36,11 @@ if ($q["t"] > 0 || $q['u'] > 0) {
<div class="menu-content" id="menu-ftp">
<ul>
<?php if ($quota->cancreate("ftp")) { ?>
<li><a href="ftp_edit.php?create=1"><img src="images/new.png" alt="<?php __("Create a new ftp account"); ?>" />&nbsp;<?php __("Create a new ftp account"); ?></a></li>
<li><a href="ftp_edit.php?create=1"><img src="images/new.png" alt="<?php __("Create a new ftp account"); ?>" />&nbsp;<?php __("Create a new ftp account"); ?></a></li>
<?php } ?>
<li><a href="ftp_list.php"><?php __("FTP accounts list"); ?></a></li>
<?php if ( $q['u'] > 0 ) { // if there are some FTP accounts ?>
<li><a href="ftp_list.php"><?php __("FTP accounts list"); ?></a></li>
<?php } //no existing FTP accounts ?>
</ul>
</div>
</div>