From 15c949b3e55d425db65fee1377df5bf220cb640d Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 05 Jun 2012 05:24:33 -0400
Subject: [PATCH] Fixed: FS#2239 - Ubuntu 12.04 - Apache errors - vlogger keeps failing

---
 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 e2b0c0c..1cb20a6 100644
--- a/server/conf/awstats_index.php.master
+++ b/server/conf/awstats_index.php.master
@@ -39,9 +39,12 @@
         }
 
         $current = $year.$month;
-        $awprev[$current] = $year."-".$month;
+		if ( $month < 10 ) {
+			$current = $year."0".$month;
+		}
+		$awprev[$current] = $year."-".$month;
 
-        closedir($handle);
+		closedir($handle);
 }
 
 echo '<div style="width: 97%; margin-left: 4px; height: 20px; background-color: #FFFFFF; position: fixed; padding: 7px; border: 2px solid #cccccc;><div align="left"><font color="#000000" size="2" face="Verdana, Arial, Helvetica,  sans-serif">' .$aw["aw_jump_text"]. '</font </div>';

--
Gitblit v1.9.1