From 3d89c1a48e611753203007d23cdb427f5894e7fc Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 3 Jun 2021 12:35:36 +1200 Subject: [PATCH] Remove some unused variables --- CRM/Core/BAO/CustomValueTable.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/CRM/Core/BAO/CustomValueTable.php b/CRM/Core/BAO/CustomValueTable.php index e099241759..3b6807beae 100644 --- a/CRM/Core/BAO/CustomValueTable.php +++ b/CRM/Core/BAO/CustomValueTable.php @@ -37,12 +37,9 @@ class CRM_Core_BAO_CustomValueTable { $VS = CRM_Core_DAO::VALUE_SEPARATOR; foreach ($customParams as $tableName => $tables) { - foreach ($tables as $index => $fields) { - $sqlOP = NULL; + foreach ($tables as $fields) { $hookID = NULL; - $hookOP = NULL; $entityID = NULL; - $isMultiple = FALSE; $set = []; $params = []; $count = 1; @@ -237,11 +234,11 @@ class CRM_Core_BAO_CustomValueTable { $fieldExtends = $field['extends'] ?? NULL; if ( - CRM_Utils_Array::value('entity_table', $field) == 'civicrm_contact' - || $fieldExtends == 'Contact' - || $fieldExtends == 'Individual' - || $fieldExtends == 'Organization' - || $fieldExtends == 'Household' + CRM_Utils_Array::value('entity_table', $field) === 'civicrm_contact' + || $fieldExtends === 'Contact' + || $fieldExtends === 'Individual' + || $fieldExtends === 'Organization' + || $fieldExtends === 'Household' ) { $paramFieldsExtendContactForEntities[$entityID]['custom_' . CRM_Utils_Array::value('custom_field_id', $field)] = $field['custom_field_id'] ?? NULL; } -- 2.25.1