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 Roeland Jago Douma
parent 019ba27943
commit 65c591093e
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 2 deletions

View File

@ -1553,12 +1553,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())));
}
}