Changeset 4842


Ignore:
Timestamp:
2003-07-01T14:29:28+12:00 (21 years ago)
Author:
mdewsnip
Message:

Added check when creating a ConvertToPlug object so that 'pluginfo.pl ConvertToPlug' doesn't crash and burn (because there is no target type specified).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/ConvertToPlug.pm

    r4745 r4842  
    118118sub new {
    119119    my $class = shift (@_);
    120     if ($class eq "ConvertToPlug") {$class = shift (@_);}
     120    if ($class eq "ConvertToPlug" && defined $_[0]) {$class = shift (@_);}
    121121    my $self;
    122122    # parsargv::parse might modify the list, so we do this by creating a copy
Note: See TracChangeset for help on using the changeset viewer.