mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/10589] Add alias to 'user_birthday' in $leap_year_birthdays definition
PHPBB3-10589
This commit is contained in:
parent
d7aa3aab5e
commit
aa21bc2a73
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ if ($config['load_birthdays'] && $config['allow_birthdays'] && $auth->acl_gets('
|
||||||
$leap_year_birthdays = '';
|
$leap_year_birthdays = '';
|
||||||
if ($now['mday'] == 28 && $now['mon'] == 2 && !$user->format_date(time(), 'L'))
|
if ($now['mday'] == 28 && $now['mon'] == 2 && !$user->format_date(time(), 'L'))
|
||||||
{
|
{
|
||||||
$leap_year_birthdays = " OR user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', 29, 2)) . "%'";
|
$leap_year_birthdays = " OR u.user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', 29, 2)) . "%'";
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = 'SELECT u.user_id, u.username, u.user_colour, u.user_birthday
|
$sql = 'SELECT u.user_id, u.username, u.user_colour, u.user_birthday
|
||||||
|
|
Loading…
Add table
Reference in a new issue