Explorar o código

correct bug in display for wordcount info
from Hanno

sbingner %!s(int64=25) %!d(string=hai) anos
pai
achega
a21b7f4d46
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pisg.pl

+ 2 - 2
pisg.pl

@@ -1161,8 +1161,8 @@ sub mostusedword
         for(my $i = 0; $i < 10; $i++) {
             last unless $i < $#popular;
             my $a = $i + 1;
-            my $popular = $popular[$i];
-            my $wordcount = htmlentities($wordcount{$popular[$i]});
+            my $popular = htmlentities($popular[$i]);
+            my $wordcount = $wordcount{$popular[$i]};
             my $lastused = htmlentities($lastused{$popular[$i]});
             html("<tr><td bgcolor=\"$conf->{rankc}\"><b>$a</b>");
             html("<td bgcolor=\"$conf->{hicell}\">$popular</td>");