- return "calldate < ". str2time($self->option_cacheable('skip_old'))
- if $self->option_cacheable('skip_old')
- && $self->calldate_unix < str2time($self->option_cacheable('skip_old'));
+ return "calldate < ". $self->option_cacheable('skip_old')
+ if length($self->option_cacheable('skip_old'))
+ && $cdr->calldate_unix < str2time($self->option_cacheable('skip_old'));