mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Fix empty birthday list.
This commit is contained in:
parent
5ddd79a84d
commit
0c09d969b0
3 changed files with 4 additions and 4 deletions
|
@ -372,7 +372,7 @@ if ($bb_cfg['birthday_check_day'] && $bb_cfg['birthday_enabled']) {
|
|||
$week_list = $today_list = array();
|
||||
$week_all = $today_all = false;
|
||||
|
||||
if (isset($stats['birthday_week_list'])) {
|
||||
if (!empty($stats['birthday_week_list'])) {
|
||||
shuffle($stats['birthday_week_list']);
|
||||
foreach ($stats['birthday_week_list'] as $i => $week) {
|
||||
if ($i >= 5) {
|
||||
|
@ -387,7 +387,7 @@ if ($bb_cfg['birthday_check_day'] && $bb_cfg['birthday_enabled']) {
|
|||
$week_list = sprintf($lang['NOBIRTHDAY_WEEK'], $bb_cfg['birthday_check_day']);
|
||||
}
|
||||
|
||||
if (isset($stats['birthday_today_list'])) {
|
||||
if (!empty($stats['birthday_today_list'])) {
|
||||
shuffle($stats['birthday_today_list']);
|
||||
foreach ($stats['birthday_today_list'] as $i => $today) {
|
||||
if ($i >= 5) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue