From: Mike Macgirvin Date: Sun, 11 Jul 2010 11:54:39 +0000 (-0700) Subject: fix birthday X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c34189c033480f874fd61269d6a1c5a3306c0e3e;p=friendica.git fix birthday --- diff --git a/include/datetime.php b/include/datetime.php index 540c436912..b0621f4a2e 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -153,7 +153,7 @@ function relative_date($posted_date) { } function age($dob,$owner_tz = '',$viewer_tz = '') { - if(strlen($dob) != 10) + if(! intval($dob)) return 0; if(! $owner_tz) $owner_tz = date_default_timezone_get();