mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
6f7de5c818
commit
44b857a98c
1 changed files with 1 additions and 1 deletions
|
@ -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)):
|
||||
|
|
Loading…
Add table
Reference in a new issue