Commit 44b857a9 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 6f7de5c8
......@@ -160,8 +160,8 @@ if ($atype == "Developer" || $atype == "Trusted User"):
<div id="pkgfiles" class="listing">
<h3><?php echo __('Sources') ?></h3>
</div>
<div>
<?php if (count($sources) > 0): ?>
<div>
<ul>
<?php
while (list($k, $src) = each($sources)):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment