Skip to content

Commit

Permalink
Notice fix
Browse files Browse the repository at this point in the history
  • Loading branch information
monishdeb committed Jul 23, 2020
1 parent 15589e3 commit 88ebfd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contact/BAO/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public static function &create(&$params, $fixAddress = TRUE, $invokeHooks = TRUE
}
}

if (array_key_exists('group', $params)) {
if (!empty($params['group'])) {
$contactIds = [$params['contact_id']];
foreach ($params['group'] as $groupId => $flag) {
if ($flag == 1) {
Expand Down

0 comments on commit 88ebfd3

Please sign in to comment.