actions_form.php: Hide empty form

Do not show the actions form if it doesn't contain any elements. This
comes into effect if the virtual path feature is enabled and the current
user doesn't have TU/developer privileges.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-07-17 21:33:17 +02:00
parent c87ae9d299
commit 55f05b3861

View file

@ -1,3 +1,4 @@
<?php if (!$USE_VIRTUAL_URLS || $atype == "Trusted User" || $atype == "Developer" ): ?>
<div class="box"> <div class="box">
<form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post"> <form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
<fieldset> <fieldset>
@ -36,3 +37,4 @@
</fieldset> </fieldset>
</form> </form>
</div> </div>
<?php endif; ?>