<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
*
* @param array $params array of params of the form $params[$table][$field] == $value
* @param string $ctype contact type to match against
- * @param string $used dedupe rule group usage ('Unsupervised' or 'Supervised' or 'General')
+ * @param string $used dedupe rule group usage ('Unsupervised' or 'Supervised' or 'General')
* @param array $except array of contacts that shouldn't be considered dupes
* @param int $ruleGroupID the id of the dedupe rule we should be using
*
$flat = array();
CRM_Utils_Array::flatten($fields, $flat);
+ // FIXME: This may no longer be necessary - check inputs
$replace_these = array(
'individual_prefix' => 'prefix_id',
'individual_suffix' => 'suffix_id',
'gender' => 'gender_id',
);
- //handle for individual_suffix, individual_prefix, gender
- foreach (array(
- 'individual_suffix', 'individual_prefix', 'gender') as $name) {
+ foreach (array('individual_suffix', 'individual_prefix', 'gender') as $name) {
if (CRM_Utils_Array::value($name, $fields)) {
$flat[$replace_these[$name]] = $flat[$name];
unset($flat[$name]);