diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-18 17:20:21 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-18 17:20:21 -0800 |
commit | 9faf849ef1212884ff126c32dc1beea6b9b5f1e2 (patch) | |
tree | ef9aeac5f1eb6b9a785b2f2bf635bfdbd1a49bbb | |
parent | 81acd758e931c46a085e048f9557b0960aa7b651 (diff) |
fix PBX in a non-voip package, fallout from RT#16723
-rw-r--r-- | httemplate/view/svc_pbx.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
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; |