1
0
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:
nlstart 2011-08-12 19:27:13 +00:00
parent 7a9ae43aad
commit 3b6c308055

View File

@ -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')
{