diff options
author | sten <stenmarsh938@gmail.com> | 2016-03-21 13:44:03 +0300 |
---|---|---|
committer | sten <stenmarsh938@gmail.com> | 2016-03-21 13:44:03 +0300 |
commit | ce87b3b167d03351cb8d4038fc33e81b2240a6fd (patch) | |
tree | 497b1d26aa8e582b0b27ffccbda3a9f1df47ac2c /RecurringType.php | |
parent | fd8ef5ec711dd1d66b2836448bf26e885ec2c3e4 (diff) | |
download | scheduler-helper-php-ce87b3b167d03351cb8d4038fc33e81b2240a6fd.zip scheduler-helper-php-ce87b3b167d03351cb8d4038fc33e81b2240a6fd.tar.gz scheduler-helper-php-ce87b3b167d03351cb8d4038fc33e81b2240a6fd.tar.bz2 |
Fix recurring interval getting if recurring event is inside find interval.
Diffstat (limited to 'RecurringType.php')
-rw-r--r-- | RecurringType.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/RecurringType.php b/RecurringType.php index 96e36d4..34bf8eb 100644 --- a/RecurringType.php +++ b/RecurringType.php @@ -251,12 +251,16 @@ class RecurringType { return $recurringInterval; //Correct start date interval if it smaller then recurring start date. - if ($intervalStartDateStamp < $recurringStartDateStamp) + if ($intervalStartDateStamp < $recurringStartDateStamp) { $intervalStartDateStamp = $recurringStartDateStamp; + $recurringInterval["start_date_stamp"] = $intervalStartDateStamp; + } //Correct end date interval if it smaller then recurring end date. - if ($intervalEndDateStamp > $recurringEndDateStamp) + if ($intervalEndDateStamp > $recurringEndDateStamp){ $intervalEndDateStamp = $recurringEndDateStamp; + $recurringInterval["end_date_stamp"] = $intervalEndDateStamp; + } $type = $this->getRecurringTypeValue(); //If recurring type is "year" then exit, else add months. |