From: Ivan Kohler Date: Sun, 19 Jan 2014 01:20:20 +0000 (-0800) Subject: fix PBX in a non-voip package, fallout from RT#16723 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a8d6bba0ce532b16e102822825442491a59fc987 fix PBX in a non-voip package, fallout from RT#16723 --- 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;