From 479b2d41cd5852bbc24589b6408bc611df87a895 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 9 Dec 2023 16:55:06 +0000 Subject: [PATCH] [REF][PHP8.2] Change from dynamic property to local variable --- CRM/Campaign/Page/Petition/ThankYou.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CRM/Campaign/Page/Petition/ThankYou.php b/CRM/Campaign/Page/Petition/ThankYou.php index 198cad5167..d2bf89eca5 100644 --- a/CRM/Campaign/Page/Petition/ThankYou.php +++ b/CRM/Campaign/Page/Petition/ThankYou.php @@ -25,15 +25,15 @@ class CRM_Campaign_Page_Petition_ThankYou extends CRM_Core_Page { $id = CRM_Utils_Request::retrieve('id', 'Positive', $this); $petition_id = CRM_Utils_Request::retrieve('pid', 'Positive', $this); $params['id'] = $petition_id; - $this->petition = []; - CRM_Campaign_BAO_Survey::retrieve($params, $this->petition); - $this->assign('petitionTitle', $this->petition['title']); - $this->assign('thankyou_title', CRM_Utils_Array::value('thankyou_title', $this->petition)); - $this->assign('thankyou_text', CRM_Utils_Array::value('thankyou_text', $this->petition)); + $petition = []; + CRM_Campaign_BAO_Survey::retrieve($params, $petition); + $this->assign('petitionTitle', $petition['title']); + $this->assign('thankyou_title', CRM_Utils_Array::value('thankyou_title', $petition)); + $this->assign('thankyou_text', CRM_Utils_Array::value('thankyou_text', $petition)); $this->assign('survey_id', $petition_id); $this->assign('status_id', $id); - $this->assign('is_share', CRM_Utils_Array::value('is_share', $this->petition)); - CRM_Utils_System::setTitle(CRM_Utils_Array::value('thankyou_title', $this->petition)); + $this->assign('is_share', CRM_Utils_Array::value('is_share', $petition)); + CRM_Utils_System::setTitle(CRM_Utils_Array::value('thankyou_title', $petition)); // send thank you or email verification emails /* -- 2.25.1