From: demeritcowboy Date: Sat, 4 Nov 2023 14:57:29 +0000 (-0400) Subject: replace undeclared class var with local var X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=47e3fc1b338ea14786443de95e6ce7ae456722ce;p=civicrm-core.git replace undeclared class var with local var --- diff --git a/CRM/Core/Form/Search.php b/CRM/Core/Form/Search.php index b071a4c45f..09d9d68280 100644 --- a/CRM/Core/Form/Search.php +++ b/CRM/Core/Form/Search.php @@ -438,9 +438,9 @@ class CRM_Core_Form_Search extends CRM_Core_Form { return; } - $this->_group = CRM_Core_PseudoConstant::nestedGroup(); - if ($this->_group) { - $this->add('select', 'group', $this->getGroupLabel(), $this->_group, FALSE, + $nestedGroup = CRM_Core_PseudoConstant::nestedGroup(); + if ($nestedGroup) { + $this->add('select', 'group', $this->getGroupLabel(), $nestedGroup, FALSE, [ 'id' => 'group', 'multiple' => 'multiple',