From 2c70e602a3877f95b3033cced81c82630e49cf25 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 25 Nov 2001 10:18:38 +0000 Subject: [PATCH] possible fix for no app cats on add --- phpgwapi/inc/class.contacts_ldap.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.contacts_ldap.inc.php b/phpgwapi/inc/class.contacts_ldap.inc.php index 03f8ec4c9d..8c15b64a94 100644 --- a/phpgwapi/inc/class.contacts_ldap.inc.php +++ b/phpgwapi/inc/class.contacts_ldap.inc.php @@ -543,7 +543,7 @@ $ldap_fields['phpgwcontacttypeid'] = $tid; $ldap_fields['phpgwcontactowner'] = $owner; $ldap_fields['phpgwcontactaccess'] = $access; - $ldap_fields['phpgwcontactcatid'] = $cat_id; + $ldap_fields['phpgwcontactcatid'] = $cat_id ? $cat_id : '0'; $ldap_fields['uidnumber'] = $this->nextid; /* $ldap_fields['objectclass'][0] = 'person'; */ $ldap_fields['objectclass'][0] = 'organizationalPerson';