CalDavBackend: check if timerange is array before accessing
Signed-off-by: Simon Spannagel <simonspa@kth.se>
This commit is contained in:
parent
ab977d074d
commit
afb88e7719
|
@ -16,6 +16,7 @@
|
|||
* @author Thomas Citharel <nextcloud@tcit.fr>
|
||||
* @author Thomas Müller <thomas.mueller@tmit.eu>
|
||||
* @author Vinicius Cubas Brand <vinicius@eita.org.br>
|
||||
* @author Simon Spannagel <simonspa@kth.se>
|
||||
*
|
||||
* @license AGPL-3.0
|
||||
*
|
||||
|
@ -1312,7 +1313,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
|||
$requirePostFilter = false;
|
||||
}
|
||||
// There was a time-range filter
|
||||
if ($componentType === 'VEVENT' && isset($filters['comp-filters'][0]['time-range'])) {
|
||||
if ($componentType === 'VEVENT' && isset($filters['comp-filters'][0]['time-range']) && is_array($filters['comp-filters'][0]['time-range'])) {
|
||||
$timeRange = $filters['comp-filters'][0]['time-range'];
|
||||
|
||||
// If start time OR the end time is not specified, we can do a
|
||||
|
|
Loading…
Reference in New Issue