HTML/DOM fixes

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Dario Giovannetti 2012-05-21 16:53:52 +02:00 committed by Lukas Fleischer
parent 5b0f1f39db
commit 937cda9ccb
2 changed files with 3 additions and 3 deletions

View file

@ -314,12 +314,12 @@ function package_details($id=0, $SID="", $dbh=NULL) {
$results = db_query($q, $dbh); $results = db_query($q, $dbh);
if (!$results) { if (!$results) {
print __("Error retrieving package details.") . "<br />\n"; print "<p>" . __("Error retrieving package details.") . "</p>\n";
} }
else { else {
$row = mysql_fetch_assoc($results); $row = mysql_fetch_assoc($results);
if (empty($row)) { if (empty($row)) {
print __("Package details could not be found.") . "<br />\n"; print "<p>" . __("Package details could not be found.") . "</p>\n";
} }
else { else {

View file

@ -39,7 +39,7 @@ while (list($indx, $carr) = each($comments)) { ?>
$count = package_comments_count(isset($_GET['ID']) ? $_GET['ID'] : pkgid_from_name($_GET['N'])); $count = package_comments_count(isset($_GET['ID']) ? $_GET['ID'] : pkgid_from_name($_GET['N']));
if ($count > 10 && !isset($_GET['comments'])) { if ($count > 10 && !isset($_GET['comments'])) {
echo '<div class="pgbox">'; echo '<div class="pgbox">';
echo '<a href="'. $_SERVER['REQUEST_URI'] . '&comments=all">'. __('Show all %s comments', $count) . '</a>'; echo '<a href="'. $_SERVER['REQUEST_URI'] . '&amp;comments=all">'. __('Show all %s comments', $count) . '</a>';
echo '</div>'; echo '</div>';
} }
?> ?>