Commit 9c98047f authored by Loui Chang's avatar Loui Chang
Browse files

Fix search output if no results are found.


Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent 2f8b8aac
......@@ -528,7 +528,7 @@ function pkg_search_page($SID="") {
}
if ($total > 1) {
if ($total > 1 || $total == 0) {
include('pkg_search_form.php');
include('pkg_search_results.php');
}
......
<form action='packages.php?<?php echo htmlentities($_SERVER['QUERY_STRING']) ?>' method='post'>
<div class="pgbox">
<div class="pgboxtitle">
<span class='f3'><?php print __("Package Listing") ?></span>
</div>
<?php if (!$result) { ?>
<div class='pgboxbody'><?php print __("Error retrieving package list.") ?></div>
<?php } elseif ($total == 0) { ?>
<div class='pgboxbody'><?php print __("No packages matched your search criteria.") ?></div>
<?php } else { ?>
<div class="pgboxtitle">
<span class='f3'><?php print __("Package Listing") ?></span>
</div>
<table width='100%' cellspacing='0' cellpadding='2'>
<tr>
......
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