Skip to content

Commit

Permalink
AdvMD: fix return type in datetime range search (39232)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitz-ilias committed Dec 4, 2023
1 parent e68b959 commit c901c61
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ public function isInCondition(ilADT $a_adt): bool
assert($a_adt instanceof ilADTDateTime);

if (!$this->getLowerADT()->isNull() && !$this->getUpperADT()->isNull()) {
return $a_adt->isInbetweenOrEqual($this->getLowerADT(), $this->getUpperADT());
return (bool) $a_adt->isInbetweenOrEqual($this->getLowerADT(), $this->getUpperADT());
} elseif (!$this->getLowerADT()->isNull()) {
return $a_adt->isLargerOrEqual($this->getLowerADT());
return (bool) $a_adt->isLargerOrEqual($this->getLowerADT());
} else {
return $a_adt->isSmallerOrEqual($this->getUpperADT());
return (bool) $a_adt->isSmallerOrEqual($this->getUpperADT());
}
}

Expand Down

0 comments on commit c901c61

Please sign in to comment.