pkg_details.php: Move "<div>" tag into if-branch

The corresponding closing "</div>" tag is only printed if the if-branch
is taken, which results in broken HTML code if the if-branch is skipped.
Move the "<div>" tag so that either both or none of the tags are
included in the generated HTML code.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-07-09 20:36:53 +02:00
parent 6f7de5c818
commit 44b857a98c

View file

@ -160,8 +160,8 @@ if ($atype == "Developer" || $atype == "Trusted User"):
<div id="pkgfiles" class="listing"> <div id="pkgfiles" class="listing">
<h3><?php echo __('Sources') ?></h3> <h3><?php echo __('Sources') ?></h3>
</div> </div>
<div>
<?php if (count($sources) > 0): ?> <?php if (count($sources) > 0): ?>
<div>
<ul> <ul>
<?php <?php
while (list($k, $src) = each($sources)): while (list($k, $src) = each($sources)):