diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-03-03 13:22:53 -0500 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-03-03 13:22:53 -0500 |
commit | 9c98047f86775cd20b0b01c4b6c426e1b3a0fd53 (patch) | |
tree | 146bed61260495dcc6d6f7e541bb0ae572e03347 /web/template | |
parent | 2f8b8aac7315d9b8fc8f4a635a61cd64e2e4bd3a (diff) |
Fix search output if no results are found.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/pkg_search_results.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index a933c01..bdb5f6c 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/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> |