summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-09 20:36:53 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-09 20:36:53 +0200
commit44b857a98cc1fe496f8492d71bce4e15fd93387d (patch)
tree5e961a263f6cf2a26bb421a144189a65ea4a83ba
parent6f7de5c818c4a8b7724e8d63377698c30827b5ba (diff)
downloadaurweb-44b857a98cc1fe496f8492d71bce4e15fd93387d.tar.xz
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>
-rw-r--r--web/template/pkg_details.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 67110fa..023fef1 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -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)):