mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/8571] Show age as 0 in birthday list when birthday is in the future.
PHPBB3-8571
This commit is contained in:
parent
106cf14d27
commit
49c89023fc
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ if ($config['load_birthdays'] && $config['allow_birthdays'])
|
||||||
|
|
||||||
if ($age = (int) substr($row['user_birthday'], -4))
|
if ($age = (int) substr($row['user_birthday'], -4))
|
||||||
{
|
{
|
||||||
$birthday_list .= ' (' . ($now['year'] - $age) . ')';
|
$birthday_list .= ' (' . max(0, $now['year'] - $age) . ')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue