From cbbe07c069f6b361ebaf2e01ec8247978794b9c3 Mon Sep 17 00:00:00 2001 From: adametz Date: Thu, 21 Jun 2018 07:06:13 +0000 Subject: [PATCH] birthday not fill git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3417 f459cee4-fb09-11de-96c3-f9c5f16c3c76 --- trunk/src/AppBundle/Entity/Traveler.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/src/AppBundle/Entity/Traveler.php b/trunk/src/AppBundle/Entity/Traveler.php index 83733b61..e5e0919f 100644 --- a/trunk/src/AppBundle/Entity/Traveler.php +++ b/trunk/src/AppBundle/Entity/Traveler.php @@ -88,8 +88,10 @@ class Traveler */ public function getBirthDate() { - if(!is_object($this->birthDate) && !strtotime($this->birthDate)){ - return '01.01.1900'; + if($this->birthDate != null && $this->birthDate != ""){ + if(!is_object($this->birthDate) && !strtotime($this->birthDate)){ + return '01.01.1900'; + } } return $this->birthDate; }