1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

Fixes #3681 - Properly detect antiflood and online tracking prefs

- e_TRACKING_DISABLED is now properly defined when user tracking is turned off ('track_online').
- Use correct antiflood pref ('antiflood1')
- Remove old 'flood_protect' pref (which was not used anymore)
This commit is contained in:
Moc
2020-05-23 15:49:40 +02:00
parent c03945cd63
commit c92b6c5e6b
4 changed files with 5 additions and 5 deletions

View File

@@ -81,7 +81,7 @@ class e_online
//global $members_online, $total_online; // Not needed as globals
global $listuserson; // FIXME - remove it, make it property, call e_online signleton - e107::getOnline()
if($online_tracking === false && $flood_control === false)
if($online_tracking == false || $flood_control == false)
{
define('e_TRACKING_DISABLED', true); // Used in forum, online menu
define('TOTAL_ONLINE', '');