mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/8571] Show 'Age: 0' on viewprofile when birthday is in the future.
PHPBB3-8571
This commit is contained in:
parent
b4949675bf
commit
106cf14d27
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue