mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
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
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user