Merge branch 'owenleonard/database_changes' of git@github.com:apippin/3rd into owenle...
authorAlan Pippin <apippin@pippins.net>
Fri, 1 Oct 2010 20:13:09 +0000 (14:13 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Fri, 1 Oct 2010 20:13:09 +0000 (14:13 -0600)
inc/class.tc.inc.php

index c44a589a02f7bd4c4621bc095aa6bb2f48d2107f..45d012e649d8724e0d6dde2dc320dbb3cc91fc50 100644 (file)
@@ -1757,7 +1757,7 @@ class tc
                                $hti_pri = $entry['pri'];
                                //print "hti_notes: $hti_notes indiv_name: $indiv_name <Br>";
                                // Perform database save actions here
-                               $this->db->query("SELECT * FROM tc_companionship WHERE individual=$individual and valid=1",__LINE__,__FILE__);
+                               $this->db->query("SELECT * FROM tc_companion WHERE individual=$individual and valid=1",__LINE__,__FILE__);
                                if ($this->db->next_record()) {
                                        $scheduling_priority = $this->db->f('scheduling_priority');
                                        //$this->logToFile("int_sched", "UPDATE tc_scheduling_priority SET priority='$hti_pri', notes=\"$hti_notes\" WHERE scheduling_priority='$scheduling_priority'");