Skip to content

Commit

Permalink
Protect against unparsable rules.
Browse files Browse the repository at this point in the history
We always need a DTSTART. If cannot determine one, skip this rule.
  • Loading branch information
yunosh committed Jan 13, 2016
1 parent 3327333 commit 262fef0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/Timezone/lib/Horde/Timezone/Rule.php
Expand Up @@ -274,6 +274,8 @@ public function addRules(Horde_Icalendar_Vtimezone $tz, $tzid, $name,
. ';BYMONTHDAY=' . implode(',', $days)
. ';BYDAY=-1' . Horde_String::upper(substr($weekday, 0, 2))
. $until);
} else {
continue;
}
$component->setAttribute('TZNAME', sprintf($name, $rule[9]));
$tz->addComponent($component);
Expand Down

0 comments on commit 262fef0

Please sign in to comment.