aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-07-20 00:53:28 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-07-20 00:53:28 +0200
commit49c89023fcc946ed8c81181fabfea164128d8d5a (patch)
treeffc8113c0dcfe0670d614379c6611b1672a71081 /phpBB/index.php
parent106cf14d27421b1e3b1c5af8ac79a8b1baa910f5 (diff)
downloadforums-49c89023fcc946ed8c81181fabfea164128d8d5a.tar
forums-49c89023fcc946ed8c81181fabfea164128d8d5a.tar.gz
forums-49c89023fcc946ed8c81181fabfea164128d8d5a.tar.bz2
forums-49c89023fcc946ed8c81181fabfea164128d8d5a.tar.xz
forums-49c89023fcc946ed8c81181fabfea164128d8d5a.zip
[ticket/8571] Show age as 0 in birthday list when birthday is in the future.
PHPBB3-8571
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 3b58646af0..91cbd326b9 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -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);