Report #37: Birthdays Ahead (code update from Kendoo)
This commit is contained in:
@@ -25,7 +25,7 @@ if ($config['load_birthdays'] && $config['allow_birthdays'])
|
|||||||
$sql = 'SELECT user_id, username, user_colour, user_birthday
|
$sql = 'SELECT user_id, username, user_colour, user_birthday
|
||||||
FROM ' . USERS_TABLE . "
|
FROM ' . USERS_TABLE . "
|
||||||
WHERE user_birthday <> ''
|
WHERE user_birthday <> ''
|
||||||
AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ') ORDER BY SUBSTRING(user_birthday FROM 4 FOR 2) ASC, SUBSTRING(user_birthday FROM 1 FOR 2) ASC';
|
AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ') ORDER BY SUBSTRING(user_birthday FROM 4 FOR 2) ASC, SUBSTRING(user_birthday FROM 1 FOR 2) ASC, username_clean ASC';
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
|
|||||||
Reference in New Issue
Block a user