summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/CalDavBackend.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-03-30 17:58:12 +0200
committerJoas Schilling <coding@schilljs.com>2017-03-30 17:58:33 +0200
commit43143e170ee775af7266cb01c8c667186c985d62 (patch)
treef73dd88799eca3de7a7dbb15d98fd54c3c6606fa /apps/dav/lib/CalDAV/CalDavBackend.php
parenta51e4dd2591b8c264846e7811605dd3f5d7a5c55 (diff)
downloadnextcloud-server-43143e170ee775af7266cb01c8c667186c985d62.tar.gz
nextcloud-server-43143e170ee775af7266cb01c8c667186c985d62.zip
Make sure transparency is an integer when saving a calendar
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/CalDavBackend.php')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 7976c1490ff..631593974e7 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -621,7 +621,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
}
$transp = '{' . Plugin::NS_CALDAV . '}schedule-calendar-transp';
if (isset($properties[$transp])) {
- $values['transparent'] = $properties[$transp]->getValue()==='transparent';
+ $values['transparent'] = (int) ($properties[$transp]->getValue() === 'transparent');
}
foreach($this->propertyMap as $xmlName=>$dbName) {
@@ -674,7 +674,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
switch ($propertyName) {
case '{' . Plugin::NS_CALDAV . '}schedule-calendar-transp' :
$fieldName = 'transparent';
- $newValues[$fieldName] = $propertyValue->getValue() === 'transparent';
+ $newValues[$fieldName] = (int) ($propertyValue->getValue() === 'transparent');
break;
default :
$fieldName = $this->propertyMap[$propertyName];