From 97918d0d83b5a2282511b5bb3ad2be693ad3242e Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Fri, 17 Mar 2023 22:02:46 +0700 Subject: [PATCH] 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 --- library/includes/page_header.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/includes/page_header.php b/library/includes/page_header.php index 94bef3c28..2b9418ba2 100644 --- a/library/includes/page_header.php +++ b/library/includes/page_header.php @@ -43,6 +43,8 @@ if (defined('SHOW_ONLINE') && SHOW_ONLINE) { if (!${$online_list} = CACHE('bb_cache')->get($online_list)) { require INC_DIR . '/online_userlist.php'; + + ${$online_list} = CACHE('bb_cache')->get($online_list); } }