From d752724b9143721b5175a0975d0c75254d779e18 Mon Sep 17 00:00:00 2001
From: Owen Leonard <owen@balawis.leonard.fam>
Date: Sun, 19 Sep 2010 17:28:53 -0600
Subject: [PATCH] fixed a few more variable rename issues that were breaking
 some sql queries

---
 inc/class.tc.inc.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php
index f766b12..409b87e 100644
--- a/inc/class.tc.inc.php
+++ b/inc/class.tc.inc.php
@@ -692,7 +692,7 @@ class tc
 
 		for ($i=0; $i < count($names); $i++) {
 			//$this->nextmatchs->template_alternate_row_color(&$this->t);
-			$this->t->set_var('indiv_name',$names[$i]);
+			$this->t->set_var('individual_name',$names[$i]);
 			if(($i+1) % 3 == 0) {
 				$this->t->set_var('table_sep',"</td></tr><tr>"); 
 			} else { 
@@ -734,7 +734,7 @@ class tc
 			// Re-add the individuals who are checked as having participated in this activity
 			$indivs = get_var('individual_name',array('POST'));
 			if(is_array($indivs)) { // Only do the foreach loop if we have a valid array of indivs to work with
-				foreach ($indivs as $indiv) {
+				foreach ($indivs as $individual) {
 					$this->db->query("INSERT INTO tc_participation (individual,activity) " .
 					                 "VALUES (" . $individual . ",". $activity['activity'] . ")",__LINE__,__FILE__);
 				}
@@ -761,7 +761,7 @@ class tc
 			}
 
 			$indivs = get_var('individual_name',array('POST'));
-			foreach ($indivs as $indiv)
+			foreach ($indivs as $individual)
 			{
 				$this->db->query("INSERT INTO tc_participation (individual,activity) " .
 				                 "VALUES (" . $individual . ",". $activity['activity'] . ")",__LINE__,__FILE__);
-- 
2.34.1