X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_pbx.cgi;fp=httemplate%2Fview%2Fsvc_pbx.cgi;h=ff0d285013db5e1d29e27b87f97066a30c7984b6;hb=a8d6bba0ce532b16e102822825442491a59fc987;hp=a1afeb22c108f0938548f68b841ce05822319d81;hpb=40ae74719fe9c1dd0e1993888dc19f0a93257103;p=freeside.git diff --git a/httemplate/view/svc_pbx.cgi b/httemplate/view/svc_pbx.cgi index a1afeb22c..ff0d28501 100644 --- a/httemplate/view/svc_pbx.cgi +++ b/httemplate/view/svc_pbx.cgi @@ -41,7 +41,7 @@ my $html_foot = sub { } my $voip_pkg = @voip_pkgs[0]; - my $cdr_svc_method = $voip_pkg->option('cdr_svc_method') + my $cdr_svc_method = ( $voip_pkg && $voip_pkg->option('cdr_svc_method') ) || 'svc_phone.phonenum'; return '' unless $cdr_svc_method =~ /^svc_pbx\.(.*)$/; my $field = $1;