From 35b3530cedf5fe94995b89aefbbb006e92d585d0 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Tue, 13 Nov 2007 20:24:50 +0000 Subject: [PATCH] Fixed previous commit in list-search.pl --- modules/search-list.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/search-list.pl b/modules/search-list.pl index a0d19269..676dd8ba 100644 --- a/modules/search-list.pl +++ b/modules/search-list.pl @@ -16,7 +16,7 @@ # 59 Temple Place, Suite 330 # Boston, MA 02111-1307 USA -$ModulesDescription .= '

$Id: search-list.pl,v 1.9 2007/11/13 20:22:05 sheep Exp $

'; +$ModulesDescription .= '

$Id: search-list.pl,v 1.10 2007/11/13 20:24:50 sheep Exp $

'; push(@MyRules, \&SearchListRule); @@ -27,7 +27,10 @@ sub SearchListRule { Dirty($1); my ($oldpos, $old_) = (pos, $_); my $original = $OpenPageName; - my $term = $2 or GetId(); + my $term = $2; + if ($term eq "") { + $term = GetId(); + } local ($OpenPageName, %Page); my %hash = (); foreach my $id (SearchTitleAndBody($term)) {