Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
f9cec142
Commit
f9cec142
authored
12 years ago
by
Thomas Tanghus
Browse files
Options
Downloads
Patches
Plain Diff
Change parameter name and update docs.
parent
acd83810
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/contacts/lib/vcard.php
+6
-5
6 additions, 5 deletions
apps/contacts/lib/vcard.php
with
6 additions
and
5 deletions
apps/contacts/lib/vcard.php
+
6
−
5
View file @
f9cec142
...
...
@@ -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
,
$is
new
=
false
){
public
static
function
add
(
$aid
,
OC_VObject
$card
,
$uri
=
null
,
$is
Checked
=
false
){
if
(
is_null
(
$card
))
{
OCP\Util
::
writeLog
(
'contacts'
,
'OC_Contacts_VCard::add. No vCard supplied'
,
OCP\Util
::
ERROR
);
return
null
;
};
if
(
!
$is
new
)
{
if
(
!
$is
Checked
)
{
OC_Contacts_App
::
loadCategoriesFromVCard
(
$card
);
self
::
updateValuesFromAdd
(
$aid
,
$card
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment