X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FFriend%2FForm.php;h=4509acd993377f7c524565a73b6d7279d99d51d2;hb=5e6d2d17f879f989fad591eb69770d963f07e178;hp=d8d7263b61263a40598e1c8598506c8b3262690f;hpb=eeca7960db033b9ee3511f6bf7d1217b1b5caed9;p=civicrm-core.git diff --git a/CRM/Friend/Form.php b/CRM/Friend/Form.php index d8d7263b61..4509acd993 100644 --- a/CRM/Friend/Form.php +++ b/CRM/Friend/Form.php @@ -129,7 +129,6 @@ class CRM_Friend_Form extends CRM_Core_Form { while ($pcp->fetch()) { $this->_title = $pcp->title; $this->_campaignId = $pcp->campaign_id; - $pcp->free(); } $this->assign('pcpTitle', $this->_title); @@ -219,18 +218,17 @@ class CRM_Friend_Form extends CRM_Core_Form { } $this->addButtons([ - [ - 'type' => 'submit', - 'name' => ts('Send Your Message'), - 'spacing' => '         ', - 'isDefault' => TRUE, - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ] - ); + [ + 'type' => 'submit', + 'name' => ts('Send Your Message'), + 'spacing' => '         ', + 'isDefault' => TRUE, + ], + [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ], + ]); $this->addFormRule(['CRM_Friend_Form', 'formRule']); }