diff options
author | Nils Adermann <naderman@naderman.de> | 2011-08-18 17:46:31 -0400 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2011-08-18 17:46:31 -0400 |
commit | d06dcd69e60bc3e6eafb4a11dfb1639fa4e4646b (patch) | |
tree | fc60cf66ef1544b6fc72ac1b5f57d0bf4ae1d923 /phpBB/memberlist.php | |
parent | 9589fbffe4cdad9fa35df2597c21fc0753ed1d52 (diff) | |
parent | 6330153937b9321ce71226a7692403b64ad8e0c7 (diff) | |
download | forums-d06dcd69e60bc3e6eafb4a11dfb1639fa4e4646b.tar forums-d06dcd69e60bc3e6eafb4a11dfb1639fa4e4646b.tar.gz forums-d06dcd69e60bc3e6eafb4a11dfb1639fa4e4646b.tar.bz2 forums-d06dcd69e60bc3e6eafb4a11dfb1639fa4e4646b.tar.xz forums-d06dcd69e60bc3e6eafb4a11dfb1639fa4e4646b.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[ticket/8571] Show age as 0 in birthday list when birthday is in the future.
[ticket/8571] Show 'Age: 0' on viewprofile when birthday is in the future.
[ticket/8571] Also display age on memberlist/viewprofile when age is 0.
Conflicts:
phpBB/index.php
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r-- | phpBB/memberlist.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index ec245795ad..1b6cb5ef94 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -1699,7 +1699,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)); } } |