X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FConstant.php;h=f9c96b894c3237c81c44d29f4d2815d4c8265d2e;hb=43625993dc97312d2b2296dceb7e83dcce8be27b;hp=ba3f964bbb1a28bf6814d14429b1534de9660db0;hpb=a946aa64b981cfd2738fa06fa9ce34dd5b76f5f7;p=civicrm-core.git diff --git a/api/v3/Constant.php b/api/v3/Constant.php index ba3f964bbb..f9c96b894c 100644 --- a/api/v3/Constant.php +++ b/api/v3/Constant.php @@ -126,7 +126,7 @@ function civicrm_api3_constant_get($params) { } return civicrm_api3_create_success($values, $params, 'constant'); } - else{ + else { $values = call_user_func(array('CRM_Utils_PseudoConstant', 'getConstant'), $name); if (!empty($values)) { return civicrm_api3_create_success($values, $params, 'constant'); @@ -187,7 +187,7 @@ function _civicrm_api3_constant_get_spec(&$params) { 'title' => 'Constant Name', 'name' => 'name', 'api.required' => 1, - 'options' => array_combine($options, $options) + 'options' => array_combine($options, $options), )) ); }