mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
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