Ignore:
Timestamp:
Jun 10, 2007, 3:47:11 PM (15 years ago)
Author:
Dagfinn Ilmari Mannsåker
Message:

Check for definedness of redirect parameter before defaulting to 1 (closes #104).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r1045 r1056  
    176176    my $config = $self->config;
    177177    my $oldid = $args{oldid} || '';
    178     my $do_redirect = $args{redirect} || 1;
     178    my $do_redirect = defined($args{redirect}) ? $args{redirect} : 1;
    179179
    180180    my %tt_vars;
Note: See TracChangeset for help on using the changeset viewer.