From 83178acdc79de25f98c3e7eee9a4de1a17eaf9f4 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 6 Oct 2003 11:20:58 +0000 Subject: [PATCH] fix linking to account list per access number --- httemplate/browse/svc_acct_pop.cgi | 2 +- httemplate/search/svc_acct.cgi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/httemplate/browse/svc_acct_pop.cgi b/httemplate/browse/svc_acct_pop.cgi index 80168728c..f77fe820b 100755 --- a/httemplate/browse/svc_acct_pop.cgi +++ b/httemplate/browse/svc_acct_pop.cgi @@ -48,7 +48,7 @@ foreach my $svc_acct_pop ( sort { <%= $svc_acct_pop->loc %> <%= $num_accounts %> - active + active <% } %> diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index 0954bf652..bbcac30b5 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -48,7 +48,7 @@ if ( $query eq 'svcnum' ) { $sortby=\*uid_sort; $orderby = ( $unlinked ? 'AND' : 'WHERE' ). " ${tblname}uid IS NOT NULL ORDER BY ${tblname}uid"; -} elsif ( $query =~ /popnum=(\d+)/ ) { +} elsif ( $query =~ /^popnum=(\d+)$/ ) { my $popnum = $1; $unlinked .= ( $unlinked ? 'AND' : 'WHERE' ). " popnum = $popnum"; @@ -63,7 +63,7 @@ if ( $query eq 'svcnum' ) { if ( $query eq 'svcnum' || $query eq 'username' || $query eq 'uid' - || $query eq 'popnum' + || $query =~ /^popnum=(\d+)$/ ) { ) { my $statement = "SELECT COUNT(*) FROM svc_acct $unlinked"; -- 2.11.0