Fixed getting online info from cache (#622)

Prevent - "Trying to access array offset on value of type bool" error on index page

Co-authored-by: Yury Pikhtarev <exileum@icloud.com>
This commit is contained in:
Roman Kelesidis 2023-03-17 22:02:46 +07:00 committed by GitHub
commit 97918d0d83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,8 @@ if (defined('SHOW_ONLINE') && SHOW_ONLINE) {
if (!${$online_list} = CACHE('bb_cache')->get($online_list)) { if (!${$online_list} = CACHE('bb_cache')->get($online_list)) {
require INC_DIR . '/online_userlist.php'; require INC_DIR . '/online_userlist.php';
${$online_list} = CACHE('bb_cache')->get($online_list);
} }
} }