1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-23 11:28:33 +01:00

[ticket/8571] Show age as 0 in birthday list when birthday is in the future.

PHPBB3-8571
This commit is contained in:
Andreas Fischer 2011-07-20 00:53:28 +02:00
parent 106cf14d27
commit 49c89023fc

View File

@ -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);