aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-01 00:36:58 -0700
committerfriendica <info@friendica.com>2014-11-01 00:36:58 -0700
commit1eacea403758981670eb589b6626f531612429d1 (patch)
treea96e96223811ce727233681cd495379ad1af25a5 /include
parenta659ac8952306b5a78a468051d3c318f50294bcf (diff)
parent5d151b988605bc5aedbef65b687a43dedbc574e9 (diff)
downloadvolse-hubzilla-1eacea403758981670eb589b6626f531612429d1.tar.gz
volse-hubzilla-1eacea403758981670eb589b6626f531612429d1.tar.bz2
volse-hubzilla-1eacea403758981670eb589b6626f531612429d1.zip
Merge https://github.com/friendica/red into pending_merge
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;
}