mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
WIP: Cumulative update ☕ (#685)
* Use lang variables instead of strings * [Cache/Datastore] Use switch constructions * Removed old-style debug from SQL wrapper * Removed useless functions * Use bb_date instead of native function
This commit is contained in:
parent
cef8db9af7
commit
4ff334bb45
11 changed files with 49 additions and 103 deletions
|
@ -71,7 +71,7 @@ if ($bb_cfg['birthday_check_day'] && $bb_cfg['birthday_enabled']) {
|
|||
$birthday_today_list = $birthday_week_list = array();
|
||||
|
||||
foreach ($sql as $row) {
|
||||
$user_birthday = date('md', strtotime($row['user_birthday']));
|
||||
$user_birthday = bb_date(strtotime($row['user_birthday']), 'md', false);
|
||||
|
||||
if ($user_birthday > $date_today && $user_birthday <= $date_forward) {
|
||||
// user are having birthday within the next days
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue