diff options
author | ivan <ivan> | 2004-10-26 12:07:26 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-10-26 12:07:26 +0000 |
commit | 3d2712d80b2a6a4b895c96373d3ef4633dc1cecc (patch) | |
tree | c3612c37dd0a210ca7d7266be90fdfd8ae38cb59 /FS/FS/part_export.pm | |
parent | f83ca4d5d217b627b7782e947b8df6e12936414b (diff) |
allow an empty exporttype so you can create new objects
Diffstat (limited to 'FS/FS/part_export.pm')
-rw-r--r-- | FS/FS/part_export.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 1e0b905..3f677b2 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -390,8 +390,9 @@ sub _rebless { my $exporttype = $self->exporttype; my $class = ref($self). "::$exporttype"; eval "use $class;"; - die $@ if $@; - bless($self, $class); + #die $@ if $@; + bless($self, $class) unless $@; + $self; } #these should probably all go away, just let the subclasses define em |