Skip to content

Commit

Permalink
All [] arrays replaced by array()
Browse files Browse the repository at this point in the history
  • Loading branch information
eaiman-shoshi authored Jul 28, 2017
1 parent 674920c commit 4651a59
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions CRM/Dedupe/Merger.php
Original file line number Diff line number Diff line change
Expand Up @@ -1523,25 +1523,19 @@ public static function moveAllBelongings($mainId, $otherId, $migrationInfo, $che
if ($value != NULL) {
$result1 = NULL;
try {
$result1 = civicrm_api3('custom_field', 'get', [
'id' => $value,
'is_active' => TRUE
]);
$result1 = civicrm_api3('custom_field', 'get', array('id' => $value, 'is_active' => TRUE));
}
catch (CiviCRM_API3_Exception $e) {
// just ignore and continue
continue;
}
}
if (!civicrm_error($result1) && isset($result1['values']) && is_array($result1['values'])) {
foreach ($result1['values'] as $value1) {
if ($value1 != NULL && is_array($value1) && isset($value1['custom_group_id'])) {
$result2 = NULL;
try {
$result2 = civicrm_api3('custom_group', 'get', [
'id' => $value1['custom_group_id'],
'is_active' => TRUE
]);
}
try {
$result2 = civicrm_api3('custom_group', 'get', array('id' => $value1['custom_group_id'], 'is_active' => TRUE));
}
catch (CiviCRM_API3_Exception $e) {
// just ignore and continue
continue;
Expand Down

0 comments on commit 4651a59

Please sign in to comment.