mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:22:37 +02:00
[ticket/8571] Show age as 0 in birthday list when birthday is in the future.
PHPBB3-8571
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user