From 8adf88cfb36e03b2ea7eee153380503746b41bc5 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 13 Jan 2015 13:44:42 +1300 Subject: [PATCH] remove unused parameter --- api/v3/utils.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 8b1aa5682d..56ad948bfd 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -1446,7 +1446,7 @@ function _civicrm_api3_validate_fields($entity, $action, &$params, $fields, $err } if (!empty($fieldInfo['api.unique'])) { $params['entity'] = $entity; - _civicrm_api3_validate_uniquekey($params, $fieldName, $fieldInfo); + _civicrm_api3_validate_unique_key($params, $fieldName); } } } @@ -1543,11 +1543,9 @@ function _civicrm_api3_validate_constraint(&$fieldValue, &$fieldName, &$fieldInf * Params from civicrm_api. * @param string $fieldName * Uniquename of field being checked. - * @param $fieldInfo - * Array of fields from getfields function. * @throws Exception */ -function _civicrm_api3_validate_uniquekey(&$params, &$fieldName, &$fieldInfo) { +function _civicrm_api3_validate_unique_key(&$params, &$fieldName) { list($fieldValue, $op) = _civicrm_api3_field_value_check($params, $fieldName); if (strpos($op, 'NULL') !== FALSE || strpos($op, 'EMPTY') !== FALSE) { return; -- 2.25.1