Merge branch 'owenleonard/ht_sandbox' of git@github.com:apippin/tc into owenleonard...
[eq/.git] / inc / class.tc.inc.php
index 2b34526c05a7bc9abb6a0fb9dc1404051daa9ea5..c3a2b7971e8d49c6315d9d12ad9d45d74b96871b 100644 (file)
@@ -694,7 +694,7 @@ class tc
                                    $switch_case_list .= "  $(\"#assignedFamilies option[value='".$family."']\").attr(\"selected\",true);\n";
                                  
                                        # 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; }