From: jeff Date: Mon, 5 Jul 2010 08:59:52 +0000 (+0000) Subject: fix bad bug causing inappropriate renewals X-Git-Tag: root_of_svc_elec_features~85 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=49129c92ec60932bd03719c93e1ab0cc4f7c52e9 fix bad bug causing inappropriate renewals --- diff --git a/FS/FS/part_export/domreg_opensrs.pm b/FS/FS/part_export/domreg_opensrs.pm index c39a0daad..6bb768d7d 100644 --- a/FS/FS/part_export/domreg_opensrs.pm +++ b/FS/FS/part_export/domreg_opensrs.pm @@ -533,7 +533,9 @@ sub renew_through { if $years > 10; #no infinite loop } - warn "$me: renewing ". $svc_domain->domain. "for $years years\n" if $DEBUG; + return '' unless $years; + + warn "$me: renewing ". $svc_domain->domain. " for $years years\n" if $DEBUG; my $srs = $self->get_srs; $rv = $srs->make_request( {