aboutsummaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-08-09 15:00:10 +0200
committerJakob Sack <kde@jakobsack.de>2011-08-09 15:00:10 +0200
commit6d1c266e1e21e5fab56220df7529401c6c1729be (patch)
treec9994686d0109f3194c808ca240c33dd84a996ec /apps/contacts/ajax
parent075db9f7eafb7030398f73ba609e16a5ae79f5b8 (diff)
downloadnextcloud-server-6d1c266e1e21e5fab56220df7529401c6c1729be.tar.gz
nextcloud-server-6d1c266e1e21e5fab56220df7529401c6c1729be.zip
You don't always have parameters in vcards!
Diffstat (limited to 'apps/contacts/ajax')
-rw-r--r--apps/contacts/ajax/addproperty.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contacts/ajax/addproperty.php b/apps/contacts/ajax/addproperty.php
index 35b4d122bda..d92566d6a18 100644
--- a/apps/contacts/ajax/addproperty.php
+++ b/apps/contacts/ajax/addproperty.php
@@ -48,7 +48,7 @@ $vcard = Sabre_VObject_Reader::read($card['carddata']);
$name = $_POST['name'];
$value = $_POST['value'];
-$parameters = $_POST['parameters'];
+$parameters = isset($_POST['parameteres'])?$_POST['parameters']:array();
if(is_array($value)){
$value = OC_Contacts_Addressbook::escapeSemicolons($value);