]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed pb when Timezone was "+0" insteadof "0".
authoreldy <>
Wed, 23 Oct 2002 17:11:54 +0000 (17:11 +0000)
committereldy <>
Wed, 23 Oct 2002 17:11:54 +0000 (17:11 +0000)
wwwroot/cgi-bin/plugins/timezone.pm

index 1eb64ccf78036b5ee352ff9af6eb3073acaa2319..aaf806a35abf358f6a3cbeb316dab7df18a2b43f 100644 (file)
@@ -43,8 +43,8 @@ sub Init_timezone {
 
        # <-----
        # YOU CAN ENTER HERE CODE TO INIT PLUGIN GLOBAL VARIABLES
-       if (! $InitParams) { return "Error: Disable plugin if TimeZone is 0 (Plugin useless)"; }        # We do not need this plugin if TZ=0
-       $PluginTimeZoneSeconds=($InitParams*3600);
+       if (! $InitParams || int($InitParams) == 0) { return "Error: Disable plugin if TimeZone is 0 (Plugin useless)"; }       # We do not need this plugin if TZ=0
+       $PluginTimeZoneSeconds=(int($InitParams)*3600);
        # ----->
 
        my $checkversion=&Check_Plugin_Version($PluginNeedAWStatsVersion);