mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Fixes for features "allow to set user absences"
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user