birthay bug - check is object

This commit is contained in:
Kevin Adametz 2018-06-21 09:03:41 +02:00
parent ee95c84fa8
commit e8a90c720a

View file

@ -88,7 +88,7 @@ class Traveler
*/
public function getBirthDate()
{
if(($this->birthDate instanceof String) && !strtotime($this->birthDate)){
if(!is_object($this->birthDate) && !strtotime($this->birthDate)){
return '01.01.1900';
}
return $this->birthDate;