From: Jitendra Purohit Date: Wed, 30 Jul 2014 06:06:57 +0000 (+0530) Subject: clean check of _pledgeID in X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cce065f9c311c78849dfe3f10101a39c3cc5a826;p=civicrm-core.git clean check of _pledgeID in --- diff --git a/CRM/Contribute/Form/SoftCredit.php b/CRM/Contribute/Form/SoftCredit.php index ad4f68cd56..b8145f7898 100644 --- a/CRM/Contribute/Form/SoftCredit.php +++ b/CRM/Contribute/Form/SoftCredit.php @@ -106,7 +106,7 @@ class CRM_Contribute_Form_SoftCredit { if ($form->getAction() & CRM_Core_Action::UPDATE) { $form->_softCreditInfo = CRM_Contribute_BAO_ContributionSoft::getSoftContribution($form->_id, TRUE); } - elseif (property_exists($form, "_pledgeID") && $form->_pledgeID) { + elseif (!empty($form->_pledgeID)) { //Check and select most recent completed contrubtion and use it to retrieve //soft-credit information to use as default for current pledge payment, CRM-13981 $pledgePayments = CRM_Pledge_BAO_PledgePayment::getPledgePayments($form->_pledgeID);