X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=inc%2Fclass.tc.inc.php;h=c4337f1d5a8a05d0eeeeaec1ebec9e5ba29303e8;hb=8abd1050612bcab4549875f12fdc1a036a9ce233;hp=15086be6a9b14cde1086a9d24bff95c20cdbdcea;hpb=39346e4dae3d877b8aceec8ed6b3dadd2be42d0c;p=eq%2F.git diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index 15086be..c4337f1 100644 --- a/inc/class.tc.inc.php +++ b/inc/class.tc.inc.php @@ -674,10 +674,10 @@ class tc $family_name = $this->db2->f('name') . " Family"; $family_id = $this->db2->f('tc_family'); $sandbox_table_data .= ""; - $sandbox_table_data .= "$family_name"; + $sandbox_table_data .= "$family_name"; # get 12 months visit data for given family - for($m=12; $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; }