Fix bug in visitor's tracking

This commit is contained in:
Fedor A. Fetisov 2012-01-24 16:41:54 +04:00
parent 0aaed55634
commit 0b32b6a0d6

View File

@ -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);