aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjeroenpraat <jeroenpraat@xs4all.nl>2014-10-31 16:49:48 +0100
committerjeroenpraat <jeroenpraat@xs4all.nl>2014-10-31 16:49:48 +0100
commitf29496229000def22ada80441bc22636e39eda71 (patch)
tree4d1fe917734ded0a3ccdfeb26c53b2a14ff41b35 /include
parent6e9552df4a9bb75dce72d8a7a8a0f234a30b6ec5 (diff)
parentd9f2944565f3bc17b21ddbbde85b3083a003f477 (diff)
downloadvolse-hubzilla-f29496229000def22ada80441bc22636e39eda71.tar.gz
volse-hubzilla-f29496229000def22ada80441bc22636e39eda71.tar.bz2
volse-hubzilla-f29496229000def22ada80441bc22636e39eda71.zip
Merge pull request #671 from pafcu/master
Fix problem with default birth date
Diffstat (limited to 'include')
-rw-r--r--include/datetime.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/datetime.php b/include/datetime.php
index fe0f29c7a..00bac8ad1 100644
--- a/include/datetime.php
+++ b/include/datetime.php
@@ -134,7 +134,10 @@ function dob($dob) {
if(! $f)
$f = 'ymd';
- $o = datesel($f,mktime(0,0,0,0,0,1900),mktime(),mktime(0,0,0,$month,$day,$year),'dob');
+ if ($dob && $dob != '0000-00-00')
+ $o = datesel($f,mktime(0,0,0,0,0,1900),mktime(),mktime(0,0,0,$month,$day,$year),'dob');
+ else
+ $o = datesel($f,mktime(0,0,0,0,0,1900),mktime(),false,'dob');
return $o;
}