]> git.mxchange.org Git - friendica.git/commitdiff
fix birthday
authorMike Macgirvin <mike@macgirvin.com>
Sun, 11 Jul 2010 11:54:39 +0000 (04:54 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Sun, 11 Jul 2010 11:54:39 +0000 (04:54 -0700)
include/datetime.php

index 540c436912d67898c870059c9f93e58f1a154ac5..b0621f4a2e6853ddb593463f1e5878d645917e01 100644 (file)
@@ -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();