mirror of
https://github.com/e107inc/e107.git
synced 2025-05-02 18:27:52 +02:00
Bugtracker #5255: only perform online query if the plugin is activated. Thanks Fanat1k.
This commit is contained in:
parent
7a9ae43aad
commit
3b6c308055
@ -817,7 +817,10 @@ if ((e_QUERY == 'logout')/* || (($pref['user_tracking'] == 'session') && isset($
|
||||
$udata = (USER === true ? USERID.'.'.USERNAME : '0');
|
||||
|
||||
// TODO - should be done inside online handler, more core areas need it (session handler for example)
|
||||
$sql->db_Update('online', "online_user_id = 0, online_pagecount=online_pagecount+1 WHERE online_user_id = '{$udata}' LIMIT 1");
|
||||
if (isset($pref['track_online']) && $pref['track_online'])
|
||||
{
|
||||
$sql->db_Update('online', "online_user_id = 0, online_pagecount=online_pagecount+1 WHERE online_user_id = '{$udata}' LIMIT 1");
|
||||
}
|
||||
|
||||
if ($pref['user_tracking'] == 'session')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user