mirror of
https://github.com/Mibew/java.git
synced 2025-01-22 17:40:35 +03:00
Fixed bug in visitor's tracking
This commit is contained in:
parent
1681690d27
commit
9e871ee587
@ -49,12 +49,12 @@ function track_visitor_start($entry, $referer, $link)
|
||||
db_escape_string($visitor['name']),
|
||||
db_escape_string($entry),
|
||||
db_escape_string(track_build_details())), $link);
|
||||
$id = db_insert_id($link);
|
||||
|
||||
if ($SESSION['visitorid']) {
|
||||
track_visit_page($SESSION['visitorid'], $referer, $link);
|
||||
if ($id) {
|
||||
track_visit_page($id, $referer, $link);
|
||||
}
|
||||
|
||||
$id = db_insert_id($link);
|
||||
return $id ? $id : 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user