mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +02:00
[ticket/8571] Show 'Age: 0' on viewprofile when birthday is in the future.
PHPBB3-8571
This commit is contained in:
@@ -1697,7 +1697,7 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
|
|||||||
$diff = ($diff < 0) ? 1 : 0;
|
$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