X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fmsg_template.pm;h=b8907171009894207463d5cfaf6946f936d29ccf;hb=c22d84e565ab16db142395dce2e8621624eff140;hp=978d71394d8faf3190d2d80634b62be0e2888312;hpb=9dc878dba30e6d93ab914f0d2502f3527428b057;p=freeside.git diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index 978d71394..b89071710 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -93,6 +93,7 @@ sub extension_table { ''; } # subclasses don't HAVE to have extensions sub _rebless { my $self = shift; + return '' unless $self->msgclass; my $class = 'FS::msg_template::' . $self->msgclass; eval "use $class;"; bless($self, $class) unless $@; @@ -845,7 +846,7 @@ sub _populate_initial_data { #class method die $error if $error; $conf->set( $hash->{_conf}, $msg_template->msgnum ) if $hash->{_conf}; - FS::upgrade_journal->set_done( $hash->{_upgrade_journal} ); + FS::upgrade_journal->set_done( $hash->{_upgrade_journal} ) if $hash->{_upgrade_journal}; }