diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-10-04 21:13:44 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-10-04 21:16:57 +0200 |
commit | fada3517b0e461e2e6a112d6e4f6eb71d856816b (patch) | |
tree | da5eb39d03aad3abac661761aed3290c1cd7c7b3 /apps/contacts/ajax/addproperty.php | |
parent | 4bcb6f5346271e0a92b4b0450f709474910d571b (diff) | |
download | nextcloud-server-fada3517b0e461e2e6a112d6e4f6eb71d856816b.tar.gz nextcloud-server-fada3517b0e461e2e6a112d6e4f6eb71d856816b.zip |
All the basic field for add contact added
Diffstat (limited to 'apps/contacts/ajax/addproperty.php')
-rw-r--r-- | apps/contacts/ajax/addproperty.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/contacts/ajax/addproperty.php b/apps/contacts/ajax/addproperty.php index 0b218c6298f..68c4f65fa5c 100644 --- a/apps/contacts/ajax/addproperty.php +++ b/apps/contacts/ajax/addproperty.php @@ -53,16 +53,7 @@ $name = $_POST['name']; $value = $_POST['value']; $parameters = isset($_POST['parameteres'])?$_POST['parameters']:array(); -if(is_array($value)){ - $value = OC_Contacts_VCard::escapeSemicolons($value); -} -$property = new Sabre_VObject_Property( $name, $value ); -$parameternames = array_keys($parameters); -foreach($parameternames as $i){ - $property->parameters[] = new Sabre_VObject_Parameter($i,$parameters[$i]); -} - -$vcard->add($property); +OC_Contacts_VCard::addVCardProperty($vcard, $name, $value, $parameters); $line = count($vcard->children) - 1; $checksum = md5($property->serialize()); |