mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 00:24:12 +03:00
Fix bug with tracking new visitors
This commit is contained in:
parent
944b0fe6c5
commit
7f133f17f7
@ -145,10 +145,7 @@ function track_visit_page($visitor_id, $page)
|
||||
array($visitor_id),
|
||||
array('return_rows' => Database::RETURN_ONE_ROW)
|
||||
);
|
||||
if (is_bool($last_page)) {
|
||||
return;
|
||||
}
|
||||
if ($last_page['address'] != $page) {
|
||||
if (is_bool($last_page) || ($last_page['address'] != $page)) {
|
||||
$db->query(
|
||||
("INSERT INTO {visitedpage} ("
|
||||
. "visitorid, address, visittime "
|
||||
|
Loading…
Reference in New Issue
Block a user