From c4485fa99cee7c12be528ff44d5f255a7f09df77 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Tue, 30 Oct 2012 08:50:47 -0400
Subject: [PATCH] Fixed: IE8 did not like some of the javascript

---
 server/conf/awstats_index.php.master |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/server/conf/awstats_index.php.master b/server/conf/awstats_index.php.master
index f3867d3..f7222c9 100644
--- a/server/conf/awstats_index.php.master
+++ b/server/conf/awstats_index.php.master
@@ -32,9 +32,12 @@
         }
 
         $current = $year.$month;
-        $awprev[$current] = $year."-".$month;
+		if ( $month < 10 ) {
+			$current = $year."0".$month;
+		}
+		$awprev[$current] = $year."-".$month;
 
-        closedir($handle);
+		closedir($handle);
 }
 
 arsort($awprev);

--
Gitblit v1.9.1