Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-08-09 17:00:10 +0400
committerJakob Sack <kde@jakobsack.de>2011-08-09 17:00:10 +0400
commit6d1c266e1e21e5fab56220df7529401c6c1729be (patch)
treec9994686d0109f3194c808ca240c33dd84a996ec /apps/contacts
parent075db9f7eafb7030398f73ba609e16a5ae79f5b8 (diff)
You don't always have parameters in vcards!
Diffstat (limited to 'apps/contacts')
-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);