diff --git a/html/cgi-bin/captive.cgi b/html/cgi-bin/captive.cgi index 46c12fd24..b15d1d37e 100755 --- a/html/cgi-bin/captive.cgi +++ b/html/cgi-bin/captive.cgi @@ -135,6 +135,12 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'Captive generate coupon'}") { } if (!$errormessage) { + # Remember selected values + foreach my $val (("UNLIMITED", "EXP_HOUR", "EXP_DAY", "EXP_WEEK", "EXP_MONTH")) { + $settings{$val} = $cgiparams{$val}; + } + &General::writehash($settingsfile, \%settings); + &General::readhasharray($coupons, \%couponhash) if (-e $coupons); my $now = time();