remove unnecessary variable
authorEileen McNaughton <eileen@fuzion.co.nz>
Thu, 8 Jan 2015 11:38:53 +0000 (00:38 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 27 Jan 2015 05:01:55 +0000 (18:01 +1300)
CRM/Member/BAO/MembershipType.php

index 20e467c80045977b68005b83b0130af94e60b9a3..1bdb21458ca49d0f78c41c5b019aa9acae38707d 100644 (file)
@@ -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,