From: Owen Leonard Date: Tue, 26 Oct 2010 22:04:52 +0000 (-0600) Subject: fixed sandbox so it doesn't show last month of visits since the current month is... X-Git-Tag: release_1_1_0^2~5 X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=commitdiff_plain;h=be758016f3cd29cef9b854c3473df80c12668763;p=eq%2F.git fixed sandbox so it doesn't show last month of visits since the current month is usually blank anyway --- diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index 9a33637..bcf18e2 100644 --- a/inc/class.tc.inc.php +++ b/inc/class.tc.inc.php @@ -681,7 +681,7 @@ class tc $sandbox_table_data .= "$family_name"; # get 12 months visit data for given family - for($m=$this->sandbox_stats_num_months; $m >= 0; $m--) { + for($m=$this->sandbox_stats_num_months; $m > 0; $m--) { $month = $this->current_month - $m; $year = $this->current_year; if($month <= 0) { $remainder = $month; $month = 12 + $remainder; $year=$year-1; }