From d44ff755c9574fd3701083415c5f3bc4c7b7116e Mon Sep 17 00:00:00 2001 From: Alan Pippin Date: Mon, 20 Sep 2010 08:29:44 -0600 Subject: [PATCH] Fixed bug in schedule yearly visit table. Bad index being used in vis_notes array. --- inc/class.tc.inc.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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); -- 2.34.1