summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-04-03 12:46:00 +0200
committerGitHub <noreply@github.com>2017-04-03 12:46:00 +0200
commit455542d306f615faa8d032999db6e19902f0b5ca (patch)
tree6917798e85375f77a1cda5dd3f9cff1ad899188e /apps/dav
parent13e7a9386037fa7ca30a2d43846ed9b4f2dfb4d6 (diff)
parent43143e170ee775af7266cb01c8c667186c985d62 (diff)
downloadnextcloud-server-455542d306f615faa8d032999db6e19902f0b5ca.tar.gz
nextcloud-server-455542d306f615faa8d032999db6e19902f0b5ca.zip
Merge pull request #4166 from nextcloud/issue-4165-invalid-int-for-transparency-on-calendars
Make sure transparency is an integer when saving a calendar
Diffstat (limited to 'apps/dav')
-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];