Commit b6aced96 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

pkg_search_results.php: Split out package results box

Do not print the wrapper div container when calling pkg_search_page().
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 3b4c6e72
......@@ -98,11 +98,13 @@ if (isset($pkgid)) {
$_GET['SB'] = 'p';
$_GET['SO'] = 'd';
echo '<div id="pkglist-results" class="box">';
if (isset($_COOKIE["AURSID"])) {
pkg_search_page($_GET, true, $_COOKIE["AURSID"]);
} else {
pkg_search_page($_GET, true);
echo '</div>';
if (!$result): ?>
<div class="box"><p><?= __("Error retrieving package list.") ?></p></div>
<p><?= __("Error retrieving package list.") ?></p>
<?php elseif ($total == 0): ?>
<div class="box"><p><?= __("No packages matched your search criteria.") ?></p></div>
<p><?= __("No packages matched your search criteria.") ?></p>
<?php else: ?>
<div id="pkglist-results" class="box">
<?php if ($show_headers): ?>
<div class="pkglist-stats">
......@@ -132,5 +131,4 @@ if (!$result): ?>
<?php endif; # if ($SID) ?>
<?php endif; ?>
<?php endif; # search was successful and returned multiple results ?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment