aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2014-10-31 16:09:48 +0100
committerStefan Parviainen <saparvia@caterva.eu>2014-10-31 16:09:48 +0100
commitd9f2944565f3bc17b21ddbbde85b3083a003f477 (patch)
tree738c8de350b236d8d880c1838c23c54b1fa467cc
parentc8666b90767e9ded1adfc81528d37d680dc99280 (diff)
downloadvolse-hubzilla-d9f2944565f3bc17b21ddbbde85b3083a003f477.tar.gz
volse-hubzilla-d9f2944565f3bc17b21ddbbde85b3083a003f477.tar.bz2
volse-hubzilla-d9f2944565f3bc17b21ddbbde85b3083a003f477.zip
Fix problem with default birth date
-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;
}