X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSetting.php;h=b12c24a2c6dd6cfddd372ed7e963b36fb46b0a55;hb=cde284256e41e6898b43e62e45c4bc8522e13a15;hp=2b5ccbabd9e93713d3d2f47b46e1a609395c5eea;hpb=3d519e1c57aa496d16003c629df1ab22d5beb062;p=civicrm-core.git diff --git a/api/v3/Setting.php b/api/v3/Setting.php index 2b5ccbabd9..b12c24a2c6 100644 --- a/api/v3/Setting.php +++ b/api/v3/Setting.php @@ -1,7 +1,7 @@ $params['version'], 'domain_id' => $domainID ); - $existing = civicrm_api('setting','get', $apiArray); + $existing = civicrm_api3('setting','get', $apiArray); $valuesToFill = array_diff_key($defaults['values'][$domainID], $existing['values'][$domainID]); if(!empty($valuesToFill)){ $result = array_merge($result, civicrm_api('setting', 'create', $valuesToFill + $apiArray));