birthay bug - check is object

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3416 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-06-21 07:03:58 +00:00
parent ee95c84fa8
commit 65338f2165

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;