summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RecurringType.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/RecurringType.php b/RecurringType.php
index b9a08af..e7e7b0f 100644
--- a/RecurringType.php
+++ b/RecurringType.php
@@ -161,14 +161,19 @@ class RecurringType {
$formatDaysListPartReg = "/,/";
$parsedData = array();
+ $parts = preg_split($formatPartsReg, $dataStr);
list(
$parsedData[self::FLD_REC_TYPE],
$parsedData[self::FLD_REC_TYPE_STEP],
$parsedData[self::FLD_WEEK_DAY],
$parsedData[self::FLD_WEEK_NUMBER],
- $parsedData[self::FLD_WEEK_DAYS_LIST],
- $parsedData[self::FLD_REPEAT]
- ) = preg_split($formatPartsReg, $dataStr);
+ $parsedData[self::FLD_WEEK_DAYS_LIST]
+ ) = $parts;
+
+ if(isset($parts[5]))
+ {
+ $parsedData[self::FLD_REPEAT] = $parts[5];
+ }
$parsedData[self::FLD_WEEK_DAYS_LIST] = ($parsedData[self::FLD_WEEK_DAYS_LIST]) ?
preg_split($formatDaysListPartReg, $parsedData[self::FLD_WEEK_DAYS_LIST]) : array();
@@ -379,4 +384,4 @@ class RecurringType {
return $maxEndDateStamp;
}
-}
+} \ No newline at end of file