瀏覽代碼

Bump dav app version and fix variable rename

tags/v9.1.0RC1
Thomas Müller 8 年之前
父節點
當前提交
287e41732c
No account linked to committer's email address
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1
    1
      apps/dav/appinfo/info.xml
  2. 2
    2
      apps/dav/lib/CalDAV/CalDavBackend.php

+ 1
- 1
apps/dav/appinfo/info.xml 查看文件

@@ -5,7 +5,7 @@
<description>ownCloud WebDAV endpoint</description>
<licence>AGPL</licence>
<author>owncloud.org</author>
<version>0.2.4</version>
<version>0.2.5</version>
<default_enable/>
<types>
<filesystem/>

+ 2
- 2
apps/dav/lib/CalDAV/CalDavBackend.php 查看文件

@@ -1319,7 +1319,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
throw new \Sabre\DAV\Exception\BadRequest('Calendar objects must have a VJOURNAL, VEVENT or VTODO component');
}
if ($componentType === 'VEVENT' && $component->DTSTART) {
$firstOccurence = $component->DTSTART->getDateTime()->getTimeStamp();
$firstOccurrence = $component->DTSTART->getDateTime()->getTimeStamp();
// Finding the last occurrence is a bit harder
if (!isset($component->RRULE)) {
if (isset($component->DTEND)) {
@@ -1333,7 +1333,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
$endDate->modify('+1 day');
$lastOccurrence = $endDate->getTimeStamp();
} else {
$lastOccurrence = $firstOccurence;
$lastOccurrence = $firstOccurrence;
}
} else {
$it = new EventIterator($vObject, (string)$component->UID);

Loading…
取消
儲存