mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Fix "A non well formed numeric value encountered" exception
In case there are users having birthdays this week "A non well formed numeric value encountered" exception is thrown. Fixes #447
This commit is contained in:
parent
01bb18fbaf
commit
a6ab8ac431
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ if ($bb_cfg['birthday_check_day'] && $bb_cfg['birthday_enabled']) {
|
|||
$week_all = true;
|
||||
continue;
|
||||
}
|
||||
$week_list[] = profile_url($week) . ' <span class="small">(' . birthday_age($week['user_birthday'] - 1) . ')</span>';
|
||||
$week_list[] = profile_url($week) . ' <span class="small">(' . birthday_age($week['user_birthday']) . ')</span>';
|
||||
}
|
||||
$week_all = ($week_all) ? ' <a class="txtb" href="#" onclick="ajax.exec({action: \'index_data\', mode: \'birthday_week\'}); return false;" title="' . $lang['ALL'] . '">...</a>' : '';
|
||||
$week_list = sprintf($lang['BIRTHDAY_WEEK'], $bb_cfg['birthday_check_day'], implode(', ', $week_list)) . $week_all;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue