Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: Search.pm questions...

Quote Reply
Re: Search.pm questions... In reply to
Hi Tom,

The $filterref doesn't get set unless $self->filter is called and all that method does is accept filters. So if there is no filter, $self->{filter} is undef or has a filter and is set to a non-empty hashref.

Though, if @query_results is empty, yes, there is a problem. It is advisable to add the line

@query_results or return;

right before:

# Now let's limit our search, and prepare how we are going to get the data.
if ( $self->{get_fields} ) {

Hope this helps,
Aki

Subject Author Views Date
Thread Search.pm questions... tom_lee 2891 Jun 24, 2001, 4:53 PM
Thread Re: Search.pm questions...
kitsune 2783 Jun 25, 2001, 2:25 PM
Post Re: Search.pm questions...
tom_lee 2781 Jun 25, 2001, 3:11 PM