summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-30 00:17:28 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-30 00:17:28 +0000
commit9922c37d73add803dd5e17c2033915b298f0fed9 (patch)
treea4278c1bf74119ed52c313875435ea6be3fda31f
parent4286cbd5c21840a5d4ee5cc9330bbd71d5002ab2 (diff)
improved logic
-rw-r--r--IkiWiki/CGI.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 08d796142..9e85e1f44 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -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.