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 <[email protected]>
---
 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

Reply via email to