Changeset 915


Ignore:
Timestamp:
Dec 17, 2006, 5:22:39 PM (15 years ago)
Author:
Earle Martin
Message:

Get rid of a warning about uninitialized value in eq.

File:
1 edited

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    }
Note: See TracChangeset for help on using the changeset viewer.