improved logic

master
joey 2006-03-30 00:17:28 +00:00
parent 4286cbd5c2
commit 9922c37d73
1 changed files with 6 additions and 5 deletions

View File

@ -487,13 +487,14 @@ sub cgi () { #{{{
my $q=CGI->new;
if (defined $q->param('phrase')) {
cgi_hyperestraier();
}
my $do=$q->param('do');
if (! defined $do || ! length $do) {
error("\"do\" parameter missing");
if (defined $q->param('phrase')) {
cgi_hyperestraier();
}
else {
error("\"do\" parameter missing");
}
}
# Things that do not need a session.