From c72d1e908d58ff45e6f332093028899e9d89a656 Mon Sep 17 00:00:00 2001
From: Alan Pippin <apippin@pippins.net>
Date: Fri, 1 Oct 2010 14:22:32 -0600
Subject: [PATCH] Fixed bug in scheduling table for null individual and/or
 family

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

diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php
index 45d012e..2ba160b 100644
--- a/inc/class.tc.inc.php
+++ b/inc/class.tc.inc.php
@@ -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) {
-- 
2.34.1