From: Joe Murray Date: Mon, 18 Nov 2013 22:15:34 +0000 (-0500) Subject: CRM-13793 removed assignment in condition X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=13299a2b1f5a603e5560141c847360f51c952e6b;p=civicrm-core.git CRM-13793 removed assignment in condition --- 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,