From e624f27b5fb8c8dffc2bb9f2db8638799bb5f1f8 Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 25 Sep 2005 20:50:14 +0000 Subject: - bug 163 fixed: link error when cookies disabled in admin/stats git-svn-id: http://piwigo.org/svn/trunk@877 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/stats.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'admin') 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 = ""; + + $url = + PHPWG_ROOT_PATH.'admin.php' + .'?page=stats' + .'&year='.$row['y'] + .'&month='.$row['m'] + ; + + $value = ''; $value.= $lang['month'][$row['m']].' '.$row['y']; $value.= ""; } -- cgit v1.2.3