diff options
author | Ivan Kohler <ivan@freeside.biz> | 2019-02-13 10:26:18 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2019-02-13 10:26:18 -0800 |
commit | 0b0a8f300458a6bf2563f007a754e9d2d69d0835 (patch) | |
tree | 5b207681bac87606c25baf224e1c47632ae18654 /FS/FS/part_pkg | |
parent | 747dacf1b1d4e623b63ca6e2eda5be454612441a (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.pm | 2 |
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 |