diff options
Diffstat (limited to 'lib/VNWeb/User/List.pm')
-rw-r--r-- | lib/VNWeb/User/List.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNWeb/User/List.pm b/lib/VNWeb/User/List.pm index d285d4b5..42e61f16 100644 --- a/lib/VNWeb/User/List.pm +++ b/lib/VNWeb/User/List.pm @@ -86,7 +86,8 @@ TUWF::get qr{/u/(?<char>[0a-z]|all)}, sub { images => 'c_imgvotes', }->{$opt->{s}}, $opt->{o} eq 'd' ? 'DESC' : 'ASC' ); - my $count = @where ? tuwf->dbVali('SELECT count(*) FROM users WHERE', sql_and @where) : tuwf->{stats}{users}; + state $totalusers = tuwf->dbVal('SELECT count(*) FROM users'); + my $count = @where ? tuwf->dbVali('SELECT count(*) FROM users WHERE', sql_and @where) : $totalusers; framework_ title => 'Browse users', sub { div_ class => 'mainbox', sub { |