mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Merge pull request #406 from Exile37/bugfix/birthday-list
Fix empty birthday list
This commit is contained in:
commit
a9509bc2a4
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_list = $today_list = array();
|
||||||
$week_all = $today_all = false;
|
$week_all = $today_all = false;
|
||||||
|
|
||||||
if (isset($stats['birthday_week_list'])) {
|
if (!empty($stats['birthday_week_list'])) {
|
||||||
shuffle($stats['birthday_week_list']);
|
shuffle($stats['birthday_week_list']);
|
||||||
foreach ($stats['birthday_week_list'] as $i => $week) {
|
foreach ($stats['birthday_week_list'] as $i => $week) {
|
||||||
if ($i >= 5) {
|
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']);
|
$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']);
|
shuffle($stats['birthday_today_list']);
|
||||||
foreach ($stats['birthday_today_list'] as $i => $today) {
|
foreach ($stats['birthday_today_list'] as $i => $today) {
|
||||||
if ($i >= 5) {
|
if ($i >= 5) {
|
||||||
|
|
|
@ -104,7 +104,7 @@ $bb_cfg['server_port'] = (!empty($_SERVER['SERVER_PORT'])) ? $_SERVER['SERVER_PO
|
||||||
$bb_cfg['script_path'] = '/'; // The path where FORUM is located relative to the domain name
|
$bb_cfg['script_path'] = '/'; // The path where FORUM is located relative to the domain name
|
||||||
|
|
||||||
// GZip
|
// GZip
|
||||||
$bb_cfg['gzip_compress'] = true; // compress output
|
$bb_cfg['gzip_compress'] = false; // compress output
|
||||||
|
|
||||||
// Tracker
|
// Tracker
|
||||||
$bb_cfg['announce_interval'] = 2400; // Announce interval (default: 1800)
|
$bb_cfg['announce_interval'] = 2400; // Announce interval (default: 1800)
|
||||||
|
|
|
@ -46,7 +46,7 @@ if ($logged_in) {
|
||||||
// Online userlist
|
// Online userlist
|
||||||
if (defined('SHOW_ONLINE') && SHOW_ONLINE) {
|
if (defined('SHOW_ONLINE') && SHOW_ONLINE) {
|
||||||
$online_full = !empty($_REQUEST['online_full']);
|
$online_full = !empty($_REQUEST['online_full']);
|
||||||
$online_list = ($online_full) ? 'online_' . $userdata['user_lang'] : 'online_short_' . $userdata['user_lang'];
|
$online_list = $online_full ? 'online_' . $userdata['user_lang'] : 'online_short_' . $userdata['user_lang'];
|
||||||
|
|
||||||
${$online_list} = array(
|
${$online_list} = array(
|
||||||
'stat' => '',
|
'stat' => '',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue