default registrations to 1 year
authorjeff <jeff>
Thu, 16 Sep 2010 04:17:32 +0000 (04:17 +0000)
committerjeff <jeff>
Thu, 16 Sep 2010 04:17:32 +0000 (04:17 +0000)
FS/FS/part_export/domreg_opensrs.pm

index 6554991..76f0059 100644 (file)
@@ -379,6 +379,8 @@ Like most export functions, returns an error message on failure or undef on succ
 sub register {
   my ( $self, $svc_domain, $years ) = @_;
 
+  $years = 1 unless $years; #default to 1 year since we don't seem to pass it
+
   return "Net::OpenSRS does not support period other than 1 year" if $years != 1;
 
   eval "use Net::OpenSRS;";