Merge branch 'FREESIDE_3_BRANCH' of ssh://git.freeside.biz/home/git/freeside into...
authorChristopher Burger <burgerc@freeside.biz>
Wed, 13 Feb 2019 18:30:38 +0000 (13:30 -0500)
committerChristopher Burger <burgerc@freeside.biz>
Wed, 13 Feb 2019 18:30:38 +0000 (13:30 -0500)
FS/FS/part_pkg/voip_cdr.pm

index b5da530..8c7a9f8 100644 (file)
@@ -691,7 +691,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