diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-08-09 17:03:46 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-08-09 17:04:14 +0200 |
commit | f9cec1426fe639a5683e36b5fbdeb9149feacb19 (patch) | |
tree | 519ef1a047d826b74002ae401c3ab7ec62084650 | |
parent | acd8381094693fe3638466de7dc6c50e2783effb (diff) | |
download | nextcloud-server-f9cec1426fe639a5683e36b5fbdeb9149feacb19.tar.gz nextcloud-server-f9cec1426fe639a5683e36b5fbdeb9149feacb19.zip |
Change parameter name and update docs.
-rw-r--r-- | apps/contacts/lib/vcard.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/contacts/lib/vcard.php b/apps/contacts/lib/vcard.php index 990e790c035..b213bcd7623 100644 --- a/apps/contacts/lib/vcard.php +++ b/apps/contacts/lib/vcard.php @@ -282,18 +282,19 @@ class OC_Contacts_VCard{ /** * @brief Adds a card - * @param integer $aid Addressbook id - * @param OC_VObject $card vCard file - * @param string $uri the uri of the card, default based on the UID + * @param $aid integer Addressbook id + * @param $card OC_VObject vCard file + * @param $uri string the uri of the card, default based on the UID + * @param $isChecked boolean If the vCard should be checked for validity and version. * @return insertid on success or false. */ - public static function add($aid, OC_VObject $card, $uri=null, $isnew=false){ + public static function add($aid, OC_VObject $card, $uri=null, $isChecked=false){ if(is_null($card)) { OCP\Util::writeLog('contacts', 'OC_Contacts_VCard::add. No vCard supplied', OCP\Util::ERROR); return null; }; - if(!$isnew) { + if(!$isChecked) { OC_Contacts_App::loadCategoriesFromVCard($card); self::updateValuesFromAdd($aid, $card); } |