Fixed bug in scheduling table for null individual and/or family
authorAlan Pippin <apippin@pippins.net>
Fri, 1 Oct 2010 20:22:32 +0000 (14:22 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Fri, 1 Oct 2010 20:22:32 +0000 (14:22 -0600)
inc/class.tc.inc.php

index 45d012e649d8724e0d6dde2dc320dbb3cc91fc50..2ba160b6e96ef975fee667f0e94478be0876ae0e 100644 (file)
@@ -3573,6 +3573,10 @@ class tc
                                        $time = $hour.':'.$minute.':'.'00';
                                        $uid = 0;
 
+                                       // Zero out family or individual if they are invalid
+                                       if($indiv == "") { $indiv=0; }
+                                       if($family == "") { $family=0; }
+
                                        // Update our location
                                        if($location == "") {
                                                if($family > 0) {