<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 5 |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019 |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM. |
- | |
- | CiviCRM is free software; you can copy, modify, and distribute it |
- | under the terms of the GNU Affero General Public License |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
- | |
- | CiviCRM is distributed in the hope that it will be useful, but |
- | WITHOUT ANY WARRANTY; without even the implied warranty of |
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
- | See the GNU Affero General Public License for more details. |
+ | Copyright CiviCRM LLC. All rights reserved. |
| |
- | You should have received a copy of the GNU Affero General Public |
- | License and the CiviCRM Licensing Exception along |
- | with this program; if not, contact CiviCRM LLC |
- | at info[AT]civicrm[DOT]org. If you have questions about the |
- | GNU Affero General Public License or the licensing of CiviCRM, |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing |
+ | This work is published under the GNU AGPLv3 license with some |
+ | permitted exceptions and without any warranty. For full license |
+ | and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
require_once 'CRM/Utils/DeprecatedUtils.php';
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2019
+ * @copyright CiviCRM LLC https://civicrm.org/licensing
*/
/**
}
}
- $email = CRM_Utils_Array::value($this->_emailIndex, $values);
+ $email = $values[$this->_emailIndex] ?? NULL;
if ($email) {
/* If the email address isn't valid, bail */
}
//check for duplicate external Identifier
- $externalID = CRM_Utils_Array::value($this->_externalIdentifierIndex, $values);
+ $externalID = $values[$this->_externalIdentifierIndex] ?? NULL;
if ($externalID) {
/* If it's a dupe,external Identifier */
$dateType = CRM_Core_Session::singleton()->get("dateTypes");
if (!empty($params['contact_sub_type'])) {
- $csType = CRM_Utils_Array::value('contact_sub_type', $params);
+ $csType = $params['contact_sub_type'] ?? NULL;
}
if (empty($params['contact_type'])) {
}
foreach ($locationFields as $locKeys) {
- if (is_array(CRM_Utils_Array::value($locKeys, $params))) {
+ if (isset($params[$locKeys]) && is_array($params[$locKeys])) {
foreach ($params[$locKeys] as $key => $value) {
if ($modeFill) {
$getValue = CRM_Utils_Array::retrieveValueRecursive($contact, $locKeys);
if (!empty($relatedContactFields[$name]) && !is_array($relatedContactFields[$name])) {
$relatedContactFields[$name] = [];
}
- $fldName = CRM_Utils_Array::value($key, $this->_mapperRelatedContactDetails);
+ $fldName = $this->_mapperRelatedContactDetails[$key] ?? NULL;
if ($fldName == 'url') {
$fldName = 'website';
}