mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix search output if no results are found.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
2f8b8aac73
commit
9c98047f86
2 changed files with 4 additions and 5 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
<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>
|
||||
|
|
Loading…
Add table
Reference in a new issue