Fix saving BYPOS recurrence with a number preceding a day name (Bifrost#T29113)

A regression caused by T1582: Support BYSETPOS recurrence on event import
This commit is contained in:
Aleksander Machniak 2017-04-06 13:38:05 +02:00
parent 56f6338b32
commit 007fc47bfc

View file

@ -440,7 +440,7 @@ abstract class kolab_format_xcal extends kolab_format
if (isset($this->weekday_map[$day])) {
// @TODO: libkolabxml does not support BYSETPOS, neither we.
// However, we can convert most common cases to BYDAY
if (!$occurence && $freq == 'MONTHLY' && !empty($bysetpos)) {
if (!$occurrence && $freq == 'MONTHLY' && !empty($bysetpos)) {
foreach ($bysetpos as $pos) {
$byday->push(new DayPos(intval($pos), $this->weekday_map[$day]));
}