[Pkg-owncloud-commits] [php-sabredav] 145/220: was setting to an empty field that was making postgres barf
David Prévot
taffit at moszumanska.debian.org
Thu May 12 01:21:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit acf7da522a9071c03337863ffe7215622fd6ec41
Author: Paul Lockaby <paul at paullockaby.com>
Date: Mon Apr 11 05:57:47 2016 +0000
was setting to an empty field that was making postgres barf
---
lib/CalDAV/Backend/PDO.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/CalDAV/Backend/PDO.php b/lib/CalDAV/Backend/PDO.php
index cd38e87..9aa36ac 100644
--- a/lib/CalDAV/Backend/PDO.php
+++ b/lib/CalDAV/Backend/PDO.php
@@ -257,7 +257,7 @@ SQL
}
$transp = '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-calendar-transp';
if (isset($properties[$transp])) {
- $values[':transparent'] = $properties[$transp]->getValue() === 'transparent';
+ $values[':transparent'] = $properties[$transp]->getValue() === 'transparent' ? 1 : 0;
}
$stmt = $this->pdo->prepare("INSERT INTO " . $this->calendarTableName . " (synctoken, components) VALUES (1, ?)");
$stmt->execute([$components]);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list