summaryrefslogtreecommitdiff
path: root/FS/FS/part_export.pm
diff options
context:
space:
mode:
authorivan <ivan>2004-10-26 12:07:26 +0000
committerivan <ivan>2004-10-26 12:07:26 +0000
commit3d2712d80b2a6a4b895c96373d3ef4633dc1cecc (patch)
treec3612c37dd0a210ca7d7266be90fdfd8ae38cb59 /FS/FS/part_export.pm
parentf83ca4d5d217b627b7782e947b8df6e12936414b (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.pm5
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