CRM-13793 removed assignment in condition
authorJoe Murray <joe.murray@jmaconsulting.biz>
Mon, 18 Nov 2013 22:15:34 +0000 (17:15 -0500)
committerJoe Murray <joe.murray@jmaconsulting.biz>
Mon, 18 Nov 2013 22:15:34 +0000 (17:15 -0500)
CRM/Contribute/Form/AbstractEditPayment.php

index 77592da41d23ee7d507427029174003a3004f74e..826e758d079a2224bf10a952bac9b41085447deb 100644 (file)
@@ -269,7 +269,9 @@ LEFT JOIN  civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
         elseif ($updatedStatusName == 'Expired') {
           $statusMsg .= "<br />" . 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 .= "<br />" . ts("Membership for %1 has been updated. The membership End Date is %2.",
             array(
               1 => $userDisplayName,