fix creating alt phonenumber

This commit is contained in:
2022-03-06 22:28:33 +01:00
parent 44ed2e44e0
commit 03471a74fe
5 changed files with 18 additions and 6 deletions

View File

@@ -98,7 +98,8 @@ class PersonPhone
public function isEmpty(): bool
{
return empty($this->getDescription()) && empty($this->getPhonenumber());
return ("" === $this->getDescription() || null === $this->getDescription())
&& null === $this->getPhonenumber();
}
public function setDate(DateTime $date): void