From 6d1c266e1e21e5fab56220df7529401c6c1729be Mon Sep 17 00:00:00 2001
From: Jakob Sack <kde@jakobsack.de>
Date: Tue, 9 Aug 2011 15:00:10 +0200
Subject: [PATCH] You don't always have parameters in vcards!

---
 apps/contacts/ajax/addproperty.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/contacts/ajax/addproperty.php b/apps/contacts/ajax/addproperty.php
index 35b4d122bd..d92566d6a1 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);
-- 
GitLab