From dbfd8e10a467d3fc311a532ec6ce4f28520e0a88 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Jan 2014 14:49:59 +0100 Subject: [PATCH] Fix: #918 $MinHit{'Host'} rather than $MinHit{'Login'} used in sub HTMLShowLogins --- docs/awstats_changelog.txt | 1 + wwwroot/cgi-bin/awstats.pl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index 5a4ad8b6..b66972b3 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -19,6 +19,7 @@ Fixes: - #838 GeoIP Cities page doesnt work. - Add missing icons. - #881 Avoid warning mixed http/https with module graphgooglechartapi. +- #918 $MinHit{'Host'} rather than $MinHit{'Login'} used in sub HTMLShowLogins. Other: - Move version system to sourceforge Git instead of CVS. diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index e75ceab8..eddae5c0 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -12200,11 +12200,11 @@ sub HTMLShowLogins{ $total_p = $total_h = $total_k = 0; my $count = 0; if ( $HTMLOutput{'alllogins'} ) { - &BuildKeyList( $MaxRowsInHTMLOutput, $MinHit{'Host'}, + &BuildKeyList( $MaxRowsInHTMLOutput, $MinHit{'Login'}, \%_login_h, \%_login_p ); } if ( $HTMLOutput{'lastlogins'} ) { - &BuildKeyList( $MaxRowsInHTMLOutput, $MinHit{'Host'}, + &BuildKeyList( $MaxRowsInHTMLOutput, $MinHit{'Login'}, \%_login_h, \%_login_l ); } foreach my $key (@keylist) { -- 2.47.2