From 0b32b6a0d6be31d34f8581ba1cd6e284285711a6 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Tue, 24 Jan 2012 16:41:54 +0400 Subject: [PATCH] Fix bug in visitor's tracking --- src/messenger/webim/libs/track.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messenger/webim/libs/track.php b/src/messenger/webim/libs/track.php index aab49b0c..91dabfd2 100644 --- a/src/messenger/webim/libs/track.php +++ b/src/messenger/webim/libs/track.php @@ -50,8 +50,8 @@ function track_visitor_start($entry, $referer, $link) db_escape_string($entry), db_escape_string(track_build_details())), $link); - if ($id) { - track_visit_page($id, $referer, $link); + if ($SESSION['visitorid']) { + track_visit_page($SESSION['visitorid'], $referer, $link); } $id = db_insert_id($link);