X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fstats.mc;h=e50f56ae2b7fc32b5bb46702753dce65c41d97cc;hp=97eb639b48a62a77f1db26dcc9eb56918e7fdc5c;hb=181c7f05d47d4abea62618b3b6d24b2298585247;hpb=e7df943cfbdba0f138c3946fb09d6d9a7f0fc4b7 diff --git a/web/htdocs/details/stats.mc b/web/htdocs/details/stats.mc index 97eb639..e50f56a 100644 --- a/web/htdocs/details/stats.mc +++ b/web/htdocs/details/stats.mc @@ -83,7 +83,7 @@ $col3 => undef my $hr; $hr = $stats->{$data}; my @sorted = sort { $hr->{$b} <=> $hr->{$a} || $a <=> $b } keys %$hr; -my $n = @sorted; $n = $maxrows if @sorted > 10; +my $n = @sorted; $n = $maxrows if @sorted > 10 && $n > $maxrows; foreach my $i (1..$n) { my $key = $sorted[$i-1];