fix OCA\DAV\CalDAV\CalDavBackend search $options

Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
dartcafe 2020-01-05 20:50:22 +01:00 committed by Thomas Citharel
parent 4b103f6d61
commit 6ce61594d6
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -1551,12 +1551,12 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
if (isset($options['timerange'])) {
if (isset($options['timerange']['start'])) {
$outerQuery->andWhere($outerQuery->expr()->gt('lastoccurence',
$outerQuery->createNamedParameter($options['timerange']['start']->getTimeStamp)));
$outerQuery->createNamedParameter($options['timerange']['start']->getTimeStamp())));
}
if (isset($options['timerange']['end'])) {
$outerQuery->andWhere($outerQuery->expr()->lt('firstoccurence',
$outerQuery->createNamedParameter($options['timerange']['end']->getTimeStamp)));
$outerQuery->createNamedParameter($options['timerange']['end']->getTimeStamp())));
}
}