mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
fix r9604
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9614 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d978dae5a1
commit
815bbac230
1 changed files with 3 additions and 2 deletions
|
@ -84,10 +84,11 @@ $birthday_list = '';
|
||||||
if ($config['load_birthdays'] && $config['allow_birthdays'])
|
if ($config['load_birthdays'] && $config['allow_birthdays'])
|
||||||
{
|
{
|
||||||
$now = getdate(time() + $user->timezone + $user->dst - date('Z'));
|
$now = getdate(time() + $user->timezone + $user->dst - date('Z'));
|
||||||
$sql = 'SELECT u.user_id, u.username, u.user_colour, u.user_birthday, b.ban_id
|
$sql = 'SELECT u.user_id, u.username, u.user_colour, u.user_birthday
|
||||||
FROM ' . USERS_TABLE . ' u
|
FROM ' . USERS_TABLE . ' u
|
||||||
LEFT JOIN ' . BANLIST_TABLE . " b ON (u.user_id = b.ban_userid)
|
LEFT JOIN ' . BANLIST_TABLE . " b ON (u.user_id = b.ban_userid)
|
||||||
WHERE b.ban_id IS NULL
|
WHERE (b.ban_id IS NULL
|
||||||
|
OR b.ban_exclude = 1)
|
||||||
AND u.user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', $now['mday'], $now['mon'])) . "%'
|
AND u.user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', $now['mday'], $now['mon'])) . "%'
|
||||||
AND u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
|
AND u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
Loading…
Add table
Reference in a new issue