From: Alan Pippin Date: Mon, 20 Sep 2010 14:29:44 +0000 (-0600) Subject: Fixed bug in schedule yearly visit table. Bad index being used in vis_notes array. X-Git-Tag: release_1_0_0~14 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%7Bdelete%7D?a=commitdiff_plain;h=d44ff755c9574fd3701083415c5f3bc4c7b7116e;p=eq%2F.git Fixed bug in schedule yearly visit table. Bad index being used in vis_notes array. --- diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index 409b87e..a372ec0 100644 --- a/inc/class.tc.inc.php +++ b/inc/class.tc.inc.php @@ -2106,8 +2106,7 @@ class tc foreach ($new_data as $entry) { $visit_notes = $entry['notes']; $family = $entry['family_id']; - $visit_pri = $entry['pri']; - + $visit_pri = $entry['pri']; // Perform database save actions here $this->db->query("SELECT * FROM tc_family WHERE family='$family'",__LINE__,__FILE__); if ($this->db->next_record()) { @@ -2232,7 +2231,7 @@ class tc $table_data.= "$name Family"; $table_data.= "$phone"; $table_data.= ""; - $table_data.= ''; foreach(range(0,6) as $num) { if($num == 0) { $num = 1; } else {$num = $num*5; } if($vis_pri == $num) { @@ -2244,9 +2243,9 @@ class tc } $table_data.= ''; $table_data.= "$date"; - $table_data.= ''; - $table_data.= ''; - $table_data.= ''; + $table_data.= ''; + $table_data.= ''; + $table_data.= ''; $table_data.= ''; $table_data.= ''; $tr_color = $this->nextmatchs->alternate_row_color($tr_color);