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