fixed sandbox so it doesn't show last month of visits since the current month is...
authorOwen Leonard <owen@balawis.leonard.fam>
Tue, 26 Oct 2010 22:04:52 +0000 (16:04 -0600)
committerOwen Leonard <owen@balawis.leonard.fam>
Tue, 26 Oct 2010 22:04:52 +0000 (16:04 -0600)
inc/class.tc.inc.php

index 9a33637061bcdd43c0e10bed5e214fef6265fa4e..bcf18e26a79ba6cfb9ee1f9b721ed95a6b287e56 100644 (file)
@@ -681,7 +681,7 @@ class tc
                                        $sandbox_table_data .= "<td align=\"Left\" width=\"1000\">$family_name</td>";
                                        
                                        # 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; }