From 55d1341010394d8dc0ec89bfd9c8e96b7e13239e Mon Sep 17 00:00:00 2001 From: ozhozh Date: Sun, 5 Jun 2011 12:18:05 +0000 Subject: [PATCH] Don't skip years on all time stats. Fixes issue 628. git-svn-id: http://yourls.googlecode.com/svn/trunk@633 12232710-3e20-11de-b438-597f59cd7555 --- yourls-infos.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yourls-infos.php b/yourls-infos.php index 11fda13..135ccc8 100644 --- a/yourls-infos.php +++ b/yourls-infos.php @@ -125,6 +125,9 @@ } // Get $list_of_days, $list_of_months, $list_of_years + reset($dates); + $first_year = key( $dates ); + $last_year = end( array_keys($dates) ); if( $dates ) { extract( yourls_build_list_of_days( $dates ) ); -- 2.45.0