From 63f50ebf1f007ed0fc6ef96041c0512587437822 Mon Sep 17 00:00:00 2001 From: stes Date: Wed, 12 Jul 2017 10:22:39 +0300 Subject: [PATCH] cabinet --- models/Customer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/models/Customer.php b/models/Customer.php index 8405b45..b088e4e 100755 --- a/models/Customer.php +++ b/models/Customer.php @@ -82,7 +82,11 @@ public function setBirthDate($value) { - $this->birthday = strtotime($value); + if (strtotime($value) !== false){ + $this->birthday = strtotime($value); + }else{ + $this->birthday = null; + } } /** -- libgit2 0.21.4