From 0c09d969b0bc1c589bbcc82612b5b29997400085 Mon Sep 17 00:00:00 2001 From: Yuriy Pikhtarev Date: Thu, 22 Jun 2017 23:02:11 +0300 Subject: [PATCH] Fix empty birthday list. --- index.php | 4 ++-- library/config.php | 2 +- library/includes/page_header.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index bca2b3e6a..dd4dba014 100644 --- a/index.php +++ b/index.php @@ -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) { diff --git a/library/config.php b/library/config.php index 316030889..6b1905df4 100644 --- a/library/config.php +++ b/library/config.php @@ -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 // GZip -$bb_cfg['gzip_compress'] = true; // compress output +$bb_cfg['gzip_compress'] = false; // compress output // Tracker $bb_cfg['announce_interval'] = 2400; // Announce interval (default: 1800) diff --git a/library/includes/page_header.php b/library/includes/page_header.php index b242f8114..c9eed194c 100644 --- a/library/includes/page_header.php +++ b/library/includes/page_header.php @@ -46,7 +46,7 @@ if ($logged_in) { // Online userlist if (defined('SHOW_ONLINE') && SHOW_ONLINE) { $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( 'stat' => '',