forked from extern/egroupware
check tid to make sure it is not '' or ' '
This commit is contained in:
parent
0b4c469fe9
commit
127c5b7636
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user