Fixes for features "allow to set user absences"

This commit is contained in:
2023-03-01 16:08:49 +01:00
parent f1ebc089c3
commit 6749758b46
8 changed files with 18 additions and 15 deletions

View File

@@ -304,7 +304,7 @@ class User implements UserInterface
public function isAbsent(): bool
{
return (null !== $this->getAbsenceStart() && $this->getAbsenceStart() <= new DateTimeImmutable('now')) ? true : false;
return null !== $this->getAbsenceStart() && $this->getAbsenceStart() <= new DateTimeImmutable('now');
}
/**