]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed: [ 1554002 ] Bug in warning() prevents certain options from working
authoreldy <>
Wed, 15 Nov 2006 22:37:40 +0000 (22:37 +0000)
committereldy <>
Wed, 15 Nov 2006 22:37:40 +0000 (22:37 +0000)
wwwroot/cgi-bin/awstats.pl

index db88b429969e678ae42333a643da9cc5138d1792..570ed3b7757a6017680b92f33eaf7de019a1caff 100644 (file)
@@ -892,10 +892,10 @@ sub error {
 sub warning {
        my $messagestring=shift;
 
-       if (! $HeaderHTTPSent && $ENV{'GATEWAY_INTERFACE'}) { http_head(); }
-       if (! $HeaderHTMLSent) { html_head(); }
        if ($Debug) { debug("$messagestring",1); }
        if ($WarningMessages) {
+               if (! $HeaderHTTPSent && $ENV{'GATEWAY_INTERFACE'}) { http_head(); }
+               if (! $HeaderHTMLSent) { html_head(); }
                if (scalar keys %HTMLOutput) {
                        $messagestring =~ s/\n/\<br\>/g;
                        print "$messagestring<br />\n";