[aur-dev] [PATCH 2/2] pkg_details.php: Move "<div>" tag into if-branch
Lukas Fleischer
archlinux at cryptocrack.de
Mon Jul 9 15:01:24 EDT 2012
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 at cryptocrack.de>
---
web/template/pkg_details.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)):
--
1.7.11.1
More information about the aur-dev
mailing list