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
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

NancyDru - June 14, 2008 - 00:22
Assigned to:Anonymous» NancyDru
Status:active» fixed

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

canen - June 16, 2008 - 02:14

Thanks for the quick fix.

#3

NancyDru - June 29, 2008 - 18:28
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.