summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorivan <ivan>2012-02-12 02:40:26 +0000
committerivan <ivan>2012-02-12 02:40:26 +0000
commit50fbdac1848a2131a15388c7cb4c37a8e267d149 (patch)
tree3d30406ecf65bcce1260ac29c43e55371ddd5214 /FS/FS
parentd9a3fdd3a25ab72aa72b067a9f0a3082346571a4 (diff)
fix harmless but noisy "Use of uninitialized value $date_style in string eq" warning
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/cust_bill.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 35ce48c35..bb44c0524 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -4993,7 +4993,7 @@ sub _items_cust_bill_pkg {
) {
my $time_period;
my $date_style = $conf->config('cust_bill-line_item-date_style');
- if ( $date_style eq 'month_of' ) {
+ if ( defined($date_style) && $date_style eq 'month_of' ) {
$time_period = time2str('The month of %B', $cust_bill_pkg->sdate);
} else {
$time_period = time2str($date_format, $cust_bill_pkg->sdate).