projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Initial refactor of createProfileContact groups
[civicrm-core.git]
/
api
/
v3
/
GroupContact.php
diff --git
a/api/v3/GroupContact.php
b/api/v3/GroupContact.php
index ef1121ccb9f96766a9d49bd2e13c00a62767e079..e9b8e6de88bbb494b1d5a73a27022d9d74e5ab63 100644
(file)
--- a/
api/v3/GroupContact.php
+++ b/
api/v3/GroupContact.php
@@
-116,7
+116,7
@@
function civicrm_api3_group_contact_create($params) {
$params['contact_id'] = $info['values'][$params['id']]['contact_id'];
}
}
- $action =
CRM_Utils_Array::value('status', $params, 'Added')
;
+ $action =
$params['status'] ?? 'Added'
;
return _civicrm_api3_group_contact_common($params, $action);
}