check tid to make sure it is not '' or ' '

This commit is contained in:
Miles Lott 2001-07-18 20:30:53 +00:00
parent 0b4c469fe9
commit 127c5b7636

View File

@ -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']);