[ticket/8571] Show 'Age: 0' on viewprofile when birthday is in the future.

PHPBB3-8571
This commit is contained in:
Andreas Fischer 2011-07-20 00:26:52 +02:00
parent b4949675bf
commit 106cf14d27

View file

@ -1697,7 +1697,7 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
$diff = ($diff < 0) ? 1 : 0;
}
$age = (int) ($now['year'] - $bday_year - $diff);
$age = max(0, (int) ($now['year'] - $bday_year - $diff));
}
}