From 3e050cb4a4581583491921f776b41d6aefd49db3 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 18 Apr 2003 03:29:25 +0000 Subject: YA pg7.3 fix --- httemplate/view/svc_acct.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'httemplate') diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 47a93586d..a5cf02776 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -1,4 +1,4 @@ - +<-- mason kludge --> <% my $conf = new FS::Conf; @@ -145,7 +145,9 @@ if ( $conf->exists('security_phrase') ) { $svc_acct->sec_phrase. ''; } -my $svc_acct_pop = qsearchs('svc_acct_pop',{'popnum'=>$svc_acct->popnum}); +my $svc_acct_pop = $svc_acct->popnum + ? qsearchs('svc_acct_pop',{'popnum'=>$svc_acct->popnum}) + : ''; print "Access number". "". $svc_acct_pop->text. '' if $svc_acct_pop; -- cgit v1.2.1