X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fapi.php;h=b976ebf51dbcc98afaf2c3662e5b10f0679da02d;hb=82c4a8d2a4b94bf56e0da925aadf7f891e295314;hp=f9e6970e19c80902258a75afdef09193b5ffe968;hpb=67744c4e70c774f83f18f512db83fdb45cb4bce7;p=civicrm-core.git diff --git a/api/api.php b/api/api.php index f9e6970e19..b976ebf51d 100644 --- a/api/api.php +++ b/api/api.php @@ -509,7 +509,7 @@ function _civicrm_api_call_nested_api(&$params, &$result, $action, $entity, $ver if (array_key_exists(0, $newparams)) { $genericParams = $subParams; // it is a numerically indexed array - ie. multiple creates - foreach ($newparams as $entity => $entityparams) { + foreach ($newparams as $entityparams) { $subParams = array_merge($genericParams, $entityparams); _civicrm_api_replace_variables($subAPI[1], $subaction, $subParams, $result['values'][$idIndex], $separator); $result['values'][$result['id']][$field][] = civicrm_api($subEntity, $subaction, $subParams);