|
|
@@ -45,13 +45,13 @@ class DateTimeConstraint extends AbstractTimeConstraintUtils implements TimeCons
|
|
|
$contraints = $this->addConstraint($contraints, $this->presentConstraint($periods));
|
|
|
} else {
|
|
|
$periods = $this->getPeriods($access);
|
|
|
- if ($historical['present']) {
|
|
|
+ if ($historical['present'] ?? false) {
|
|
|
$contraints = $this->addConstraint($contraints, $this->presentConstraint($periods));
|
|
|
}
|
|
|
- if ($historical['past']) {
|
|
|
+ if ($historical['past'] ?? false) {
|
|
|
$contraints = $this->addConstraint($contraints, $this->pastConstraint($periods));
|
|
|
}
|
|
|
- if ($historical['future']) {
|
|
|
+ if ($historical['future'] ?? false) {
|
|
|
$contraints = $this->addConstraint($contraints, $this->futureConstraint($periods));
|
|
|
}
|
|
|
}
|