From 127c5b76360e7595d736dc3aad189cd9f63aafdf Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 18 Jul 2001 20:30:53 +0000 Subject: [PATCH] check tid to make sure it is not '' or ' ' --- addressbook/inc/class.soaddressbook.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addressbook/inc/class.soaddressbook.inc.php b/addressbook/inc/class.soaddressbook.inc.php index e63eecb396..dba05c451e 100644 --- a/addressbook/inc/class.soaddressbook.inc.php +++ b/addressbook/inc/class.soaddressbook.inc.php @@ -71,6 +71,11 @@ function add_entry($userid,$fields) { $this->makeobj(); + $fields['tid'] = trim($fields['tid']); + if(empty($fields['tid'])) + { + $fields['tid'] = 'n'; + } if ($this->rights & PHPGW_ACL_ADD) { $this->contacts->add($userid,$fields,$fields['access'],$fields['cat_id'],$fields['tid']);