From 65338f21652d800b30c6316755ec62bf1cfa5054 Mon Sep 17 00:00:00 2001 From: adametz Date: Thu, 21 Jun 2018 07:03:58 +0000 Subject: [PATCH] birthay bug - check is object git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3416 f459cee4-fb09-11de-96c3-f9c5f16c3c76 --- trunk/src/AppBundle/Entity/Traveler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/AppBundle/Entity/Traveler.php b/trunk/src/AppBundle/Entity/Traveler.php index ad2038a9..83733b61 100644 --- a/trunk/src/AppBundle/Entity/Traveler.php +++ b/trunk/src/AppBundle/Entity/Traveler.php @@ -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;