]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix a bug in host report when ShowWhoIsLinks is 1
authoreldy <>
Sat, 20 Jul 2002 13:26:31 +0000 (13:26 +0000)
committereldy <>
Sat, 20 Jul 2002 13:26:31 +0000 (13:26 +0000)
wwwroot/cgi-bin/awstats.pl

index ca054ddd355664394ea3e0d45262f79f41c0883b..69958d0651668a4b5b8aa293fcfb4d5235b90160 100644 (file)
@@ -2713,6 +2713,7 @@ sub ShowWhoIsCell {
        else { $keyurl =~ /(\w+\.\w+)$/; $keyforwhois=$1; }
        print "<td>";
        if ($keyforwhois) { print "<a href=\"$LinksToWhoIs$keyforwhois\" target=awstatswhois>?</a>"; }
+       else { print "&nbsp;" }
        print "</td>";
 }
 
@@ -5158,7 +5159,9 @@ EOF
                $rest_h=$TotalHits-$total_h;
                $rest_k=$TotalBytes-$total_k;
                if ($rest_p > 0 || $rest_h > 0 || $rest_k > 0) {        # All other visitors (known or not)
-                       print "<TR><TD CLASS=AWL><font color=blue>$Message[2]</font></TD><TD>$rest_p</TD><TD>$rest_h</TD><TD>".Format_Bytes($rest_k)."</TD><TD>&nbsp;</TD></TR>\n";
+                       print "<TR><TD CLASS=AWL><font color=blue>$Message[2]</font></TD>";
+                       if ($ShowLinksToWhoIs && $LinksToWhoIs) { print "<TD>&nbsp;</TD>"; }
+                       print "<TD>$rest_p</TD><TD>$rest_h</TD><TD>".Format_Bytes($rest_k)."</TD><TD>&nbsp;</TD></TR>\n";
                }
                &tab_end;
        }