From 13299a2b1f5a603e5560141c847360f51c952e6b Mon Sep 17 00:00:00 2001 From: Joe Murray Date: Mon, 18 Nov 2013 17:15:34 -0500 Subject: [PATCH] CRM-13793 removed assignment in condition --- CRM/Contribute/Form/AbstractEditPayment.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/AbstractEditPayment.php b/CRM/Contribute/Form/AbstractEditPayment.php index 77592da41d..826e758d07 100644 --- a/CRM/Contribute/Form/AbstractEditPayment.php +++ b/CRM/Contribute/Form/AbstractEditPayment.php @@ -269,7 +269,9 @@ LEFT JOIN civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co elseif ($updatedStatusName == 'Expired') { $statusMsg .= "
" . ts("Membership for %1 has been Expired.", array(1 => $userDisplayName)); } - elseif ($endDate = CRM_Utils_Array::value('membership_end_date', $updateResult)) { + else + $endDate = CRM_Utils_Array::value('membership_end_date', $updateResult); + if ($endDate) { $statusMsg .= "
" . ts("Membership for %1 has been updated. The membership End Date is %2.", array( 1 => $userDisplayName, -- 2.25.1