diff options
author | ivan <ivan> | 2003-04-18 03:29:24 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-04-18 03:29:24 +0000 |
commit | 2e9ff8b770519382f5767faf7a1dd15eb79eb7fe (patch) | |
tree | e79134a9bc665c6e797236101164d432547743e2 /httemplate/view/svc_acct.cgi | |
parent | a3d47fd14478fdd6df79d6d26ee5d5c37ad99d5e (diff) |
YA pg7.3 fix
Diffstat (limited to 'httemplate/view/svc_acct.cgi')
-rwxr-xr-x | httemplate/view/svc_acct.cgi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 2e324c13c..f04e47163 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -1,4 +1,4 @@ -<!-- mason kludge --> +<-- mason kludge --> <% my $conf = new FS::Conf; @@ -140,7 +140,9 @@ if ( $conf->exists('security_phrase') ) { $svc_acct->sec_phrase. '</TD></TR>'; } -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 "<TR><TD ALIGN=\"right\">Access number</TD>". "<TD BGCOLOR=\"#ffffff\">". $svc_acct_pop->text. '</TD></TR>' if $svc_acct_pop; |