From 5db2212e2d408f4611439734db1a31ab32dced2f Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 6 Feb 2021 14:33:43 -0500 Subject: [PATCH] php 7.4 notice --- CRM/Contact/BAO/Query.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 4f9874513d..baa41722cd 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -1112,8 +1112,10 @@ class CRM_Contact_BAO_Query { } $field = $this->_fields[$elementName] ?? NULL; - if (isset($this->_pseudoConstantsSelect[$field['name']])) { - $this->_pseudoConstantsSelect[$name . '-' . $field['name']] = $this->_pseudoConstantsSelect[$field['name']]; + if (!empty($field)) { + if (isset($this->_pseudoConstantsSelect[$field['name']])) { + $this->_pseudoConstantsSelect[$name . '-' . $field['name']] = $this->_pseudoConstantsSelect[$field['name']]; + } } // hack for profile, add location id -- 2.25.1