]> sipb.mit.edu Git - ikiwiki.git/commitdiff
improved logic
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 30 Mar 2006 00:17:28 +0000 (00:17 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 30 Mar 2006 00:17:28 +0000 (00:17 +0000)
IkiWiki/CGI.pm

index 08d79614217e0855a35fb99565c7adc5d5e0ea60..9e85e1f4402d8399f0714cba1d9cf34f470d3efe 100644 (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.