Changeset 915 for trunk/wiki.cgi

Show
Ignore:
Timestamp:
12/17/06 17:22:39 (2 years ago)
Author:
earle
Message:

Get rid of a warning about uninitialized value in eq.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wiki.cgi

    r897 r915  
    3838    # Note $q->param('keywords') gives you the entire param string. 
    3939    # We need this to do URLs like foo.com/wiki.cgi?This_Page 
    40     my $node = $q->param('id') || $q->param('title') || $q->param('keywords') || ""; 
     40    my $node = $q->param('id') || $q->param('title') || $q->param('keywords') || ''; 
    4141    $node = $formatter->node_param_to_node_name( $node ); 
    4242 
    4343    # If we did a post, then CGI->param probably hasn't fully de-escaped, 
    4444    #  in the same way as a get would've done 
    45     if($q->request_method() eq "POST") { 
     45    my $request_method = $q->request_method() || ''; 
     46    if($request_method eq 'POST') { 
    4647        $node = uri_unescape($node); 
    4748    }