From: Eileen McNaughton Date: Wed, 30 Aug 2023 04:40:38 +0000 (+1200) Subject: Move smarty assign to be always assigned (notices) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c252313a3a4ea9e0948c625b36c25fcc1575c478;p=civicrm-core.git Move smarty assign to be always assigned (notices) --- diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index 19c7667761..247f41705b 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -492,7 +492,6 @@ class CRM_Profile_Form extends CRM_Core_Form { $page->run(); } } - $this->assign('multiRecordFieldListing', $multiRecordFieldListing); // is profile double-opt in? if (!empty($this->_fields['group']) && @@ -521,7 +520,7 @@ class CRM_Profile_Form extends CRM_Core_Form { CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm', 'reset=1')); } } - + $this->assign('multiRecordFieldListing', $multiRecordFieldListing ?? NULL); if (!is_array($this->_fields)) { CRM_Core_Session::setStatus(ts('This feature is not currently available.'), ts('Sorry'), 'error'); CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm', 'reset=1'));