aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-08-18 17:46:31 -0400
committerNils Adermann <naderman@naderman.de>2011-08-18 17:46:31 -0400
commitd06dcd69e60bc3e6eafb4a11dfb1639fa4e4646b (patch)
treefc60cf66ef1544b6fc72ac1b5f57d0bf4ae1d923 /phpBB/memberlist.php
parent9589fbffe4cdad9fa35df2597c21fc0753ed1d52 (diff)
parent6330153937b9321ce71226a7692403b64ad8e0c7 (diff)
downloadforums-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.php2
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));
}
}