Merge pull request #14494 from colemanw/customPc
[civicrm-core.git] / CRM / Friend / Form.php
index d8d7263b61263a40598e1c8598506c8b3262690f..4509acd993377f7c524565a73b6d7279d99d51d2 100644 (file)
@@ -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']);
   }