aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/stats.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/admin/stats.php b/admin/stats.php
index 5e823a38d..cd72ec81e 100644
--- a/admin/stats.php
+++ b/admin/stats.php
@@ -91,9 +91,17 @@ while ( $row = mysql_fetch_array( $result ) )
$current_month = $row['y']."-";
if ($row['m'] <10) {$current_month.='0';}
$current_month .= $row['m'];
+
$where_clause = "DATE_FORMAT(date,'%Y-%m') = '".$current_month."'";
- $value = "<a href='".PHPWG_ROOT_PATH."admin.php?page=stats";
- $value.= "&amp;year=".$row['y']."&amp;month=".$row['m']."'>";
+
+ $url =
+ PHPWG_ROOT_PATH.'admin.php'
+ .'?page=stats'
+ .'&amp;year='.$row['y']
+ .'&amp;month='.$row['m']
+ ;
+
+ $value = '<a href="'.add_session_id($url).'">';
$value.= $lang['month'][$row['m']].' '.$row['y'];
$value.= "</a>";
}