Yarik
/
artbox-order
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code ยป
Commit
63f50ebf1f007ed0fc6ef96041c0512587437822
Authored by
Anastasia
2017-07-12 10:22:39 +0300
1 parent
e5e827a8
cabinet
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
models/Customer.php
Inline
Side-by-side
models/Customer.php
Wrap text
Show/Hide comments
View file @
63f50eb
...
...
@@ -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
/**
...
...