From: ivan Date: Thu, 29 Jan 2009 19:21:21 +0000 (+0000) Subject: fix unsuspend-always_adjust_next_bill_date config, RT#4271 X-Git-Tag: root_of_webpay_support~98 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=e605a0b7181ac66bcf8a74de117efc87e869c978 fix unsuspend-always_adjust_next_bill_date config, RT#4271 --- diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 885eef18f..7b85bdfdd 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -933,7 +933,7 @@ sub unsuspend { $hash{'bill'} = ( $hash{'bill'} || $hash{'setup'} ) + $inactive if ( $opt{'adjust_next_bill'} - || $conf->config('unsuspend-always_adjust_next_bill_date') ) + || $conf->exists('unsuspend-always_adjust_next_bill_date') ) && $inactive > 0 && ( $hash{'bill'} || $hash{'setup'} ); $hash{'susp'} = '';