Merge pull request #5485 from eileenmcnaughton/4.6
[civicrm-core.git] / CRM / Contribute / Form / Contribution / Confirm.php
index 1cb0d331bd376da98384064dce5c1de6cef41dc2..37126d5e14e07aed6282d8fe51f61af2fa0f4c51 100644 (file)
@@ -169,7 +169,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
         $payment = CRM_Core_Payment::singleton($this->_mode, $this->_paymentProcessor, $this);
         $expressParams = $payment->getExpressCheckoutDetails($this->get('token'));
 
-        $this->_params['payer'] = $expressParams['payer'];
+        $this->_params['payer'] = CRM_Utils_Array::value('payer', $expressParams);
         $this->_params['payer_id'] = $expressParams['payer_id'];
         $this->_params['payer_status'] = $expressParams['payer_status'];
 
@@ -1685,7 +1685,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
     // create relationship
     $relParams['contact_check'][$orgID] = 1;
     $cid = array('contact' => $contactID);
-    CRM_Contact_BAO_Relationship::createMultiple($relParams, $cid);
+    CRM_Contact_BAO_Relationship::legacyCreateMultiple($relParams, $cid);
 
     // if multiple match - send a duplicate alert
     if ($dupeIDs && (count($dupeIDs) > 1)) {