summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2019-02-13 10:26:18 -0800
committerIvan Kohler <ivan@freeside.biz>2019-02-13 10:26:18 -0800
commit0b0a8f300458a6bf2563f007a754e9d2d69d0835 (patch)
tree5b207681bac87606c25baf224e1c47632ae18654 /FS/FS/part_pkg
parent747dacf1b1d4e623b63ca6e2eda5be454612441a (diff)
fix skip_old when date has leading 0, RT#81480
Diffstat (limited to 'FS/FS/part_pkg')
-rw-r--r--FS/FS/part_pkg/voip_cdr.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm
index 74deb8b..87c3247 100644
--- a/FS/FS/part_pkg/voip_cdr.pm
+++ b/FS/FS/part_pkg/voip_cdr.pm
@@ -679,7 +679,7 @@ sub check_chargable {
and $cdr->max_callers <= $self->option_cacheable('skip_max_callers');
return "calldate < ". $self->option_cacheable('skip_old')
- if $self->option_cacheable('skip_old')
+ if length($self->option_cacheable('skip_old'))
&& $cdr->calldate_unix < str2time($self->option_cacheable('skip_old'));
#all right then, rate it