Changeset 1003


Ignore:
Timestamp:
Mar 25, 2007, 6:43:10 PM (15 years ago)
Author:
Dominic Hargreaves
Message:

Fix uninitialized variable warning

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r999 r1003  
    33More detailed changelogs can be found at
    44http://dev.openguides.org/log/trunk
     5
     60.60
     7        Bugfix: uninitialized variable warning in script_url
    58
    690.59    25 March 2007
  • trunk/lib/OpenGuides/Config.pm

    r965 r1003  
    232232    # See perldoc Class::Accessor - can't just use SUPER.
    233233    my $url = $self->_script_url_accessor( @_ );
    234     $url .= "/" unless $url =~ /\/$/;
     234    $url .= "/" unless (defined $url && $url =~ /\/$/);
    235235    return $url;
    236236}
Note: See TracChangeset for help on using the changeset viewer.