Commit 63f50ebf1f007ed0fc6ef96041c0512587437822

Authored by Anastasia
1 parent e5e827a8

cabinet

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
models/Customer.php
... ... @@ -82,7 +82,11 @@
82 82  
83 83 public function setBirthDate($value)
84 84 {
85   - $this->birthday = strtotime($value);
  85 + if (strtotime($value) !== false){
  86 + $this->birthday = strtotime($value);
  87 + }else{
  88 + $this->birthday = null;
  89 + }
86 90 }
87 91  
88 92 /**
... ...