mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-23 03:19:01 +01: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
@ -99,7 +99,7 @@ if ($config['load_birthdays'] && $config['allow_birthdays'])
|
||||
|
||||
if ($age = (int) substr($row['user_birthday'], -4))
|
||||
{
|
||||
$birthday_list .= ' (' . ($now['year'] - $age) . ')';
|
||||
$birthday_list .= ' (' . max(0, $now['year'] - $age) . ')';
|
||||
}
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
Loading…
x
Reference in New Issue
Block a user