mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 10:28:55 +00:00
[ticket/9687] Remove no longer needed code after adjusting query
PHPBB3-9687
This commit is contained in:
parent
744bf162b3
commit
eacfe7be7b
1 changed files with 0 additions and 9 deletions
|
@ -140,17 +140,8 @@ if ($show_birthdays)
|
||||||
$rows = $db->sql_fetchrowset($result);
|
$rows = $db->sql_fetchrowset($result);
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
/** @var \phpbb\ban\manager $ban_manager */
|
|
||||||
$ban_manager = $phpbb_container->get('ban.manager');
|
|
||||||
$banned_users = $ban_manager->get_banned_users();
|
|
||||||
|
|
||||||
foreach ($rows as $row)
|
foreach ($rows as $row)
|
||||||
{
|
{
|
||||||
if (isset($banned_users[(int) $row['user_id']]))
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$birthday_username = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
|
$birthday_username = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
|
||||||
$birthday_year = (int) substr($row['user_birthday'], -4);
|
$birthday_year = (int) substr($row['user_birthday'], -4);
|
||||||
$birthday_age = ($birthday_year) ? max(0, $now['year'] - $birthday_year) : '';
|
$birthday_age = ($birthday_year) ? max(0, $now['year'] - $birthday_year) : '';
|
||||||
|
|
Loading…
Add table
Reference in a new issue