Merge pull request #3962 from totten/master-test-autoload
[civicrm-core.git] / CRM / Contribute / Page / ContributionRecur.php
index 9a05df42bf8f87ad4171814a74602191ce1d7242..be2c84832fe95d9730794e506157737dafccc610 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -55,7 +55,7 @@ class CRM_Contribute_Page_ContributionRecur extends CRM_Core_Page {
       $values = array();
       CRM_Core_DAO::storeValues($recur, $values);
       // if there is a payment processor ID, get the name of the payment processor
-      if (CRM_Utils_Array::value('payment_processor_id', $values)) {
+      if (!empty($values['payment_processor_id'])) {
         $values['payment_processor'] = CRM_Core_DAO::getFieldValue(
           'CRM_Financial_DAO_PaymentProcessor',
           $values['payment_processor_id'],
@@ -63,7 +63,7 @@ class CRM_Contribute_Page_ContributionRecur extends CRM_Core_Page {
         );
       }
       // get contribution status label
-      if (CRM_Utils_Array::value('contribution_status_id', $values)) {
+      if (!empty($values['contribution_status_id'])) {
         $values['contribution_status'] = CRM_Core_OptionGroup::getLabel('contribution_status', $values['contribution_status_id']);
       }
 
@@ -81,9 +81,6 @@ class CRM_Contribute_Page_ContributionRecur extends CRM_Core_Page {
     // check logged in url permission
     CRM_Contact_Page_View::checkUserPermission($this);
 
-    // set page title
-    CRM_Contact_Page_View::setTitle($this->_contactId);
-
     $this->assign('action', $this->_action);
 
     if ($this->_permission == CRM_Core_Permission::EDIT && !CRM_Core_Permission::check('edit contributions')) {