aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-07-20 00:26:52 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-07-20 00:32:00 +0200
commit106cf14d27421b1e3b1c5af8ac79a8b1baa910f5 (patch)
tree65b6c8d45c2581b13bea5208cff523099b1fddc7
parentb4949675bfdd11212b9e38681b0ecce79d72ab24 (diff)
downloadforums-106cf14d27421b1e3b1c5af8ac79a8b1baa910f5.tar
forums-106cf14d27421b1e3b1c5af8ac79a8b1baa910f5.tar.gz
forums-106cf14d27421b1e3b1c5af8ac79a8b1baa910f5.tar.bz2
forums-106cf14d27421b1e3b1c5af8ac79a8b1baa910f5.tar.xz
forums-106cf14d27421b1e3b1c5af8ac79a8b1baa910f5.zip
[ticket/8571] Show 'Age: 0' on viewprofile when birthday is in the future.
PHPBB3-8571
-rw-r--r--phpBB/memberlist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 351759fcbd..8169ee7a3e 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -1697,7 +1697,7 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
$diff = ($diff < 0) ? 1 : 0;
}
- $age = (int) ($now['year'] - $bday_year - $diff);
+ $age = max(0, (int) ($now['year'] - $bday_year - $diff));
}
}