mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/9687] Remove no longer needed code after adjusting query
PHPBB3-9687
This commit is contained in:
@@ -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) : '';
|
||||||
|
Reference in New Issue
Block a user