From: Eileen McNaughton Date: Thu, 8 Jan 2015 11:38:53 +0000 (+1300) Subject: remove unnecessary variable X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1f2232c9beefb01499e74278b2ca9a2cec4ec950;p=civicrm-core.git remove unnecessary variable --- diff --git a/CRM/Member/BAO/MembershipType.php b/CRM/Member/BAO/MembershipType.php index 20e467c800..1bdb21458c 100644 --- a/CRM/Member/BAO/MembershipType.php +++ b/CRM/Member/BAO/MembershipType.php @@ -453,7 +453,7 @@ class CRM_Member_BAO_MembershipType extends CRM_Member_DAO_MembershipType { ); $rolloverDay = substr($membershipTypeDetails['fixed_period_rollover_day'], -2); - $fixedRolloverDate = date('Y-m-d', mktime(0, 0, 0, $rolloverMonth, $rolloverDay, $year)); + $actualRolloverDate = date('Y-m-d', mktime(0, 0, 0, $rolloverMonth, $rolloverDay, $year)); //CRM-7825 -membership date rules are : //1. Membership should not be start in future. @@ -462,9 +462,6 @@ class CRM_Member_BAO_MembershipType extends CRM_Member_DAO_MembershipType { //store original fixed start date as per current year. $actualStartDate = $fixedStartDate; - //store original fixed rollover date as per current year. - $actualRolloverDate = $fixedRolloverDate; - //get the fixed end date here. $dateParts = explode('-', $actualStartDate); $fixedEndDate = date('Y-m-d', mktime(0, 0, 0,