[ticket/9687] Fix birthday list query

PHPBB3-9687
This commit is contained in:
Marc Alexander 2023-07-04 14:48:42 +02:00
parent 9048aed163
commit 9b77dd0283
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -112,7 +112,7 @@ if ($show_birthdays)
'FROM' => array(
USERS_TABLE => 'u',
),
'WHERE' => 'u.user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . "
'WHERE' => 'u.user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ")
AND (u.user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', $now['mday'], $now['mon'])) . "%' $leap_year_birthdays)",
);