mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
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:
parent
7019d31353
commit
97918d0d83
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue