From c41524ac2a21e53cab0fb86a5699afe89a3768bc Mon Sep 17 00:00:00 2001 From: plugz Date: Thu, 19 Jun 2003 16:06:59 +0000 Subject: [PATCH] bugfix for #499 Search modified to allow simple and advanced searches. One character = simple search More than one = advanced search (the old one) --- member.pl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/member.pl b/member.pl index 67193073e5..9f2ff6a97d 100755 --- a/member.pl +++ b/member.pl @@ -52,7 +52,18 @@ my ($template, $loggedinuser, $cookie) my $member=$input->param('member'); my $env; -my ($count,$results)=BornameSearch($env,$member,'web'); + +my ($count,$results); + +if(length($member) == 1) +{ + ($count,$results)=BornameSearch($env,$member,"simple"); +} +else +{ + ($count,$results)=BornameSearch($env,$member,"advanced"); +} + my @resultsdata; for (my $i=0; $i < $count; $i++){ -- 2.39.5