Empty results
canen - June 13, 2008 - 22:25
| Project: | Glossary |
| Version: | 5.x-2.6 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | NancyDru |
| Status: | closed |
Jump to:
Description
When a glossary search returns no results the page is blank. It would be much better if we say the search result was empty. I did a quick thing in the glossary_search_results function that also places the search form on the page.
<?php
if (db_num_rows($result) == 0) {
return '<p>Your search returned no results</p>' . drupal_get_form('glossary_search_form');
}
?>
#1
Strange, I had something in the 6.x version. I changed it to be very much like the the Search module. Thanks for finding this.
Fix committed to both branches.
#2
Thanks for the quick fix.
#3