fixed typo causing fatal error when client sends a recuring event with a given number of occurences

This commit is contained in:
Ralf Becker 2011-04-01 08:23:09 +00:00
parent 64cf625403
commit e34db60775

View File

@ -525,7 +525,7 @@ class calendar_activesync implements activesync_plugin_write
{
// calculate enddate from occurences count, as we only support enddate
$count = $message->recurrence->occurrences;
foreach(calendar_rrule::event2rrule($event, true) as $time) // true = timestamps are user time here, because of save!
foreach(calendar_rrule::event2rrule($event, true) as $rtime) // true = timestamps are user time here, because of save!
{
if (--$count <= 0) break;
}