From: Owen Leonard <owen@balawis.leonard.fam>
Date: Sun, 19 Sep 2010 23:28:53 +0000 (-0600)
Subject: fixed a few more variable rename issues that were breaking some sql queries
X-Git-Tag: release_1_0_0~17^2
X-Git-Url: http://git.pippins.net/%7Blink_ppi%7D?a=commitdiff_plain;h=d752724b9143721b5175a0975d0c75254d779e18;p=eq%2F.git

fixed a few more variable rename issues that were breaking some sql queries
---

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__);